IWritableBitmapDataSetColor32 Method

Sets the color of the pixel at the specified coordinates using a Color32 value.
See the Remarks section of the SetPixel method for details.

Definition

Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 7.0.0-preview.3
C#
void SetColor32(
	int x,
	int y,
	Color32 color
)

Parameters

x  Int32
The x-coordinate of the pixel to set.
y  Int32
The y-coordinate of the pixel to set.
color  Color32
A Color32 structure that represents the color to assign to the specified pixel.

Exceptions

ObjectDisposedExceptionThis IWritableBitmapData has already been disposed.
ArgumentOutOfRangeExceptionx is less than zero or is greater than or equal to Width.
-or-
y is less than zero or is greater than or equal to Height.

See Also