Table of Contents

Class PixelFormats

Namespace
PaintDotNet.Imaging
Assembly
PaintDotNet.Primitives.dll

Contains properties for getting the documented, built-in pixel formats, as well as methods for obtaining information about the supported pixel formats.

public static class PixelFormats
Inheritance
PixelFormats
Inherited Members

Remarks

For more information, see: Native Pixel Formats Overview.

Properties

Alpha8
Bgr16_555
Bgr16_565
Bgr24
Bgr32
Bgr48
Bgra16_5551
Bgra32
Bgra64
Bgra64Fixed
BlackWhite
Cmyk32
Cmyk64
Cmyka40
Cmyka80
DontCare
Gray16
Gray16Half
Gray2
Gray32Float
Gray4
Gray8
Indexed1
Indexed2
Indexed4
Indexed8
Pbgra32
Pbgra64
Prgba128Float
Prgba32
Prgba64
Prgba64Half
Rgb128Float
Rgb24
Rgb32
Rgb48
Rgb48Half
Rgb64
Rgb64Half
Rgb96Float
Rgba128Float
Rgba32
Rgba64
Rgba64Fixed
Rgba64Half
Undefined

Methods

GetSupportedFormatsList()

Gets a list of the PixelFormats that have full support in the imaging framework. These pixel formats will have a corresponding color struct, such as ColorBgra32, as well as support for IBitmapSource, IBitmap, and IBitmapLock, and their generic counterparts IBitmapSource<TPixel>, IBitmap<TPixel>, and IBitmapLock<TPixel>.

GetSupportedFormatsSet()

Gets a set of the PixelFormats that have full support in the imaging framework. These pixel formats will have a corresponding color struct, such as ColorBgra32, as well as support for IBitmapSource, IBitmap, and IBitmapLock.

IsSupported(in PixelFormat)

Gets a flag indicating whether the PixelFormat has full support in the imaging framework. Supported pixel formats will have a corresponding color struct, such as ColorBgra32, as well as support for IBitmapSource, IBitmap, and IBitmapLock, and their generic counterparts IBitmapSource<TPixel>, IBitmap<TPixel>, and IBitmapLock<TPixel>.

TryGetPixelInfo(in PixelFormat)

Gets information about the pixel format.

TryGetPixelInfo(in PixelFormat, out IPixelInfo?)