coordinates in panel and image

  • Thread starter Thread starter Asaf Dan
  • Start date Start date
A

Asaf Dan

Hi,

I'm using a panel to show an image.
The Image could be bigger or smaller than the panel.
I want to show the pixel coordinates of the image on a label next to the
panel.
I'm using an event but i cant get to show the real image pixel's
coordinates.
I would appreciate any kind of help.

Thanks, Asaf.
 
Asaf,

What do you mean the pixel coordinates? Since you have an instance of
the Image class (or a class derived from it) you can get the height and the
width of the image. Also, you should know where on the panel the image is
being painted. That should give you all the information you need.

Hope this helps.
 
Back
Top