467,077 Members | 973 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,077 developers. It's quick & easy.

coordinates in panel and image

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.
Nov 15 '05 #1
  • viewed: 4185
Share:
1 Reply
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.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"Asaf Dan" <ad**@iai.co.il> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
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.

Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Robin Senior | last post: by
1 post views Thread by Dino M. Buljubasic | last post: by
3 posts views Thread by jackiepatti@gmail.com | last post: by
4 posts views Thread by =?Utf-8?B?Unlhbg==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.