IWritableBitmapDataRowSetColor64 Method

Sets the color of the pixel in the current row at the specified x coordinate from a Color64 value.

Definition

Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 10.0.0-rc.1
C#
void SetColor64(
	int x,
	Color64 color
)

Parameters

x  Int32
The x-coordinate of the pixel to set.
color  Color64
A Color64 value that represents the color to assign to the specified pixel.

Remarks

The color parameter represents a non-premultiplied color with 16 bits per channel in the sRGB color space, regardless of the underlying PixelFormat.

To access the actual PixelFormat-dependent raw value use the WriteRaw method.

If the color to be set cannot be represented precisely by the owner IWritableBitmapData, then it will be quantized to a supported color value.

Exceptions

ArgumentOutOfRangeExceptionx is less than zero or is greater than or equal to the Width of the parent IWritableBitmapData.

See Also