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)
Platform BlazorASP.NETWinFormsWPF.NET MAUI
Question *
Answer (Optional)
Email (Optional)
Email address is only for further clarification on your FAQ request. It will not be used for any other purpose.
Please leave this field empty.
Share with