Returns pixel value at specified coordinates.
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Type: System.Int32
Horizontal position of the pixel.Type: System.Int32
Vertical position of the pixel.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. However if you need iterate each pixel in bitmap, it will work too slow. In this case you should consider using LockBits() method instead. It will provide you a direct access to pixels.
bitmap.SetPixel(120, 100, Aurigma.GraphicsMill.RgbColor.Red) Dim color As Aurigma.GraphicsMill.RgbColor = bitmap.GetPixel(100, 80)
bitmap.SetPixel(120, 100, Aurigma.GraphicsMill.RgbColor.Red); Aurigma.GraphicsMill.RgbColor color = (Aurigma.GraphicsMill.RgbColor)(bitmap.GetPixel(100, 80));