IReadableBitmapDataRowItem Property

Gets the color of the pixel in the current row at the specified x coordinate as a Color32 value.

Definition

Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 10.0.0-rc.1
C#
Color32 this[
	int x
] { get; }

Parameters

x  Int32
The x-coordinate of the pixel to retrieve.

Return Value

Color32
A Color32 instance that represents the color of the specified pixel.

Remarks

The returned value is a non-premultiplied color with 8 bits per channel in the sRGB color space, regardless of the underlying PixelFormat. This member is practically the same as the GetColor32 method.

To retrieve the color in other color formats use the GetColor.../GetPColor... methods.

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

Exceptions

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

See Also