Method SetPixelFormat
- Namespace
- PaintDotNet.Imaging
- Assembly
- PaintDotNet.Windows.dll
SetPixelFormat(in PixelFormat, out PixelFormat)
Requests that the encoder use the specified pixel format.
void SetPixelFormat(in PixelFormat requestedPixelFormat, out PixelFormat actualPixelFormat)
Parameters
requestedPixelFormatPixelFormatThe requested pixel format
actualPixelFormatPixelFormatThe closest pixel format GUID supported by the encoder; this may be different than the requested format.
Remarks
The encoder might not support the requested pixel format. If not, SetPixelFormat returns the closest match. If the returned pixel format doesn't match the requested format, you must use a format converter to convert the pixel data.