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
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
, andIBitmapLock
, and their generic counterpartsIBitmapSource<TPixel>
,IBitmap<TPixel>
, andIBitmapLock<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
, andIBitmapLock
.
- 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
, andIBitmapLock
, and their generic counterpartsIBitmapSource<TPixel>
,IBitmap<TPixel>
, andIBitmapLock<TPixel>
.
- TryGetPixelInfo(in PixelFormat)
Gets information about the pixel format.