Click or drag to resize

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
)

Parameters

x
Type: SystemInt32
The x coordinate
y
Type: SystemInt32
The y coordinate

Return Value

Type: Color
The 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