Use the Bitmap.GetPixel method.
[C#]
Color c = myBitmap.GetPixel( xPos, yPos);
[VB.NET}
Dim c as Color = myBitmap.GetPixel( xPos, yPos)
Home / FAQ / WinForms / Bitmaps and Images / How do I get the color of a pixel in my bitmap
Use the Bitmap.GetPixel method.
[C#]
Color c = myBitmap.GetPixel( xPos, yPos);
[VB.NET}
Dim c as Color = myBitmap.GetPixel( xPos, yPos)
Share with