BitmapGetPixel Method (Int32, Int32) |
Gets the color of the pixel at the specified coordinates.
Namespace:
Eto.Drawing
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public Color GetPixel(
int x,
int y
)
Public Function GetPixel (
x As Integer,
y As Integer
) As Color
member GetPixel :
x : int *
y : int -> Color
Parameters
- x
- Type: SystemInt32
The x coordinate - y
- Type: SystemInt32
The y coordinate
Return Value
Type:
ColorThe color of the pixel at the specified coordinates
Remarks
Note that this method can be extremely slow to go through each pixel of a bitmap.
If you need better performance, use
Lock to get access to the bitmap's pixel buffer directly,
then optionally use
GetPixel(Int32, Int32) to get each pixel value.
See Also