Property OutputPixelFormat
- Namespace
- PaintDotNet.Effects
- Assembly
- PaintDotNet.Effects.Core.dll
OutputPixelFormat
Sets the pixel format for the output buffer.
PixelFormat OutputPixelFormat { get; set; }
Property Value
Remarks
If the effect does not set this property, the output buffer will default to Bgra32.
The effect must use the same pixel format when retrieving its output buffer with
Lock(in PixelFormat).
Setting this value does not guarantee that the effect's output will be stored in any particular pixel
format, but it permits the effect infrastructure to know ahead-of-time the format and precision that
is optimal for the effect.
Exceptions
- UnsupportedPixelFormatException
The pixel format is not supported.