IBitmapDataPixelFormat Property

KGy SOFT Drawing Libraries Help
Gets the PixelFormat of the current IBitmapData instance.
See the Remarks section for details.

Namespace:  KGySoft.Drawing.Imaging
Assembly:  KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 5.1.0
Syntax

PixelFormat PixelFormat { get; }

Property Value

Type: PixelFormat
Remarks

The value of this property determines how the raw underlying values should be interpreted if the pixels are accessed by the ReadRaw or WriteRaw methods. Otherwise, in most cases using the members of the interfaces derived from the IBitmapData and IBitmapDataRow interfaces work seamlessly.

If this property returns an indexed format (Format8bppIndexed, Format4bppIndexed or Format1bppIndexed), then the Palette property returns a non- value.

Note Note
On some platforms this property can return a different PixelFormat from the Image.PixelFormat property of the original image.
For details and further information about the possible usable PixelFormats on different platforms see the Remarks section of the ConvertPixelFormat method.
See Also

Reference