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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top