Click or drag to resize

BitmapSetPixel Method (Int32, Int32, Color)

Sets the color of the pixel at the specified coordinates.

Namespace:  Eto.Drawing
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public void SetPixel(
	int x,
	int y,
	Color color
)

Parameters

x
Type: SystemInt32
The x coordinate of the pixel to set.
y
Type: SystemInt32
The y coordinate of the pixel to set.
color
Type: Eto.DrawingColor
Color to set the pixel to.
Remarks
Note that this method can be extremely slow to set 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 SetPixel(Int32, Int32, Color) to set each pixel value.
See Also