Get colour of pixel at coordinate

  • Thread starter Thread starter Mark Ingram
  • Start date Start date
M

Mark Ingram

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,
 
Mark said:
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,

I should perhaps say that the pixels in question are inside an image in
a PictureBox.

Thanks,
 
Back
Top