How do I get the color of a pixel in my bitmap

Platform: WinForms| Category: Bitmaps and Images

Use the Bitmap.GetPixel method.

[C#]
Color c = myBitmap.GetPixel( xPos, yPos);

[VB.NET}
Dim c as Color = myBitmap.GetPixel( xPos, yPos)

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.