Create a PixelFormat object.
Syntax

[C#]

PixelFormat(ColorPalette colorTable);
PixelFormat(ColorSpace space, int bitsPerComponent);
PixelFormat(ColorSpace space, int bitsPerComponent, Nullable<ColorChannel> extra);
PixelFormat(ColorSpace space, int bitsPerComponent, Nullable<ColorChannel> extra, bool reversed);
PixelFormat(ColorSpace space, int bitsPerComponent, Nullable<ColorChannel> extra, bool reversed, ColorPalette palette);
PixelFormat(PixelFormat format);
PixelFormat(PixelFormat copy, Nullable<ColorChannel> extra, bool reversed);

[Visual Basic]

Sub New(colorTable As ColorPalette)
Sub New(space As ColorSpace, bitsPerComponent As Integer)
Sub New(space As ColorSpace, bitsPerComponent As Integer, extra As Nullable(Of ColorChannel))
Sub New(space As ColorSpace, bitsPerComponent As Integer, extra As Nullable(Of ColorChannel), reversed As Boolean)
Sub New(space As ColorSpace, bitsPerComponent As Integer, extra As Nullable(Of ColorChannel), reversed As Boolean, palette As ColorPalette)
Sub New(format As PixelFormat)
Sub New(copy As PixelFormat, extra As Nullable(Of ColorChannel), reversed As Boolean)
Params
Name Description
colorTable A color table for use in the case of an indexed color representation
space The color space for the pixels.
bitsPerComponent The number of bits used to represent each of the components in the color space.
extra An optional extra component to be added to each pixel. These may be used for alignment or to store values such as alpha.
reversed Whether components are reversed. For example RGB on Windows may be represented as BGR because due to the little-endian nature of the platform.
palette The color table for the format - only relevant if the format is indexed color.
format An existing PixelFormat to copy.
copy An existing format to use as the base for this one.
Notes

None.

Example

None.