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
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
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.

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)
TryGetPixelInfo(in PixelFormat)

Gets information about the pixel format.

TryGetPixelInfo(in PixelFormat, out IPixelInfo?)