Assuming that you're image is represented as a Bitmap type, you can use the
GetPixel method. So in your case, you can cast the Image property of the
PictureBox to a Bitmap and then call the GetPixel method, assuming that the
Image property is not null.
http://msdn.microsoft.com/library/de...pixeltopic.asp
--
Tim Wilson
..NET Compact Framework MVP
"Mark Ingram" <no****@nowhere.com> wrote in message
news:u6**************@TK2MSFTNGP14.phx.gbl...
Hi, ive got an imagine in a PictureBox, and would like to get the colour
of the pixel when the mouse is over the control. From what ive (briefly)
seen, there is no way to do this directly in C# and requires you to use
GetPixel from the Win API?
Is this correct? Any other better ways of doing this?
Thanks,