By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,741 Members | 2,004 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,741 IT Pros & Developers. It's quick & easy.

coordinates in panel and image

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.