PixelFormatInfoBitsPerPixel Property

Gets or sets the bits per pixel value of this PixelFormatInfo. Supported range is 1..128 (or 1..16 for Indexed formats). Typical values are powers of two but any value is supported.

Definition

Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 9.1.1
C#
public byte BitsPerPixel {
	get;
 set; }

Property Value

Byte

Exceptions

ArgumentOutOfRangeExceptionWhen setting this property, value must be between 1 and 128.

See Also