Gets the color of the specified pixel in this Bitmap.
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
public Color GetPixel( int x, int y )
Type: System.Int32
The x-coordinate of the pixel to retrieve.Type: System.Int32
The y-coordinate of the pixel to retrieve.This method was implemented for easy but slow access to pixels. It works ideally if you need to get one pixel value, for example, when you implement color picker.
bitmap.SetPixel(120, 100, RgbColor.Red); var color = (RgbColor)(bitmap.GetPixel(100, 80));