KnownPixelFormat Enumeration

Represents pixel formats with built-in support. For custom formats you can use the PixelFormatInfo type when applicable.

Definition

Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 7.0.0-preview.3
C#
public enum KnownPixelFormat

Remarks

  Note

The KnownPixelFormat enumeration contains all formats that the System.Drawing.Imaging.PixelFormat enumeration also has, though some fields have different values and the matching names do not necessarily represent the same pixel layout either. For example, in this library wide formats, such as Format64bppArgb, use the full 16 bit per color channel range and the same gamma correction as the 8-bit per channel formats; however, PixelFormat.Format64bppArgb might represent a different range or gamma correction, depending on the operating system.

Members

Undefined0 The pixel format is undefined.
Format16bppRgb555135,173 Represents a 16 bit per pixel color format where red, green and blue channels use 5 bits per pixel. The remaining bit is not used.
Format16bppRgb565135,174 Represents a 16 bit per pixel color format where red, green and blue channels use 5, 6 and 5 bits per pixel, respectively.
Format24bppRgb137,224 Represents a 16 bit per pixel color format where red, green and blue channels use 8 bits per pixel.
Format32bppRgb139,273 Represents a 32 bit per pixel color format where red, green and blue channels use 8 bits per pixel. The remaining 8 bits are not used.
Format1bppIndexed196,865 Represents the indexed 1 bit per pixel format. The corresponding color palette can have up to 2 colors.
Format4bppIndexed197,634 Represents the indexed 4 bit per pixel format. The corresponding color palette can have up to 16 colors.
Format8bppIndexed198,659 Represents the indexed 8 bit per pixel format. The corresponding color palette can have up to 256 colors.
Format32bppPArgb925,707 Represents a 32 bit per pixel color format where alpha, red, green and blue channels use 8 bits per pixel. The red, green, and blue components are premultiplied, according to the alpha component.
Format48bppRgb1,060,876 Represents a 48 bit per pixel color format where red, green and blue channels use 16 bits per pixel.
Format64bppPArgb1,851,406 Represents a 32 bit per pixel color format where alpha, red, green and blue channels use 8 bits per pixel. The red, green, and blue components are premultiplied, according to the alpha component.
Format32bppArgb2,498,570 Represents a 32 bit per pixel color format where alpha, red, green and blue channels use 8 bits per pixel.
Format64bppArgb3,424,269 Represents a 32 bit per pixel color format where alpha, red, green and blue channels use 16 bits per pixel.
Format16bppGrayScale34,607,108 Represents the 16 bit per pixel grayscale format. The color information specifies 65536 shades of gray.
Format16bppArgb155567,506,183 Represents a 16 bit per pixel color format where red, green and blue channels use 5 bits per pixel along with 1 bit for alpha.

See Also