Class PlanarFormatConverter
[Guid("BEBEE9CB-83B0-4DCC-8132-B0AAA55EAC96")]
public class PlanarFormatConverter : BitmapSource
- Inheritance
-
PlanarFormatConverter
- Inherited Members
Constructors
PlanarFormatConverter(nint)
public PlanarFormatConverter(nint nativePtr)
Parameters
nativePtr
nint
Methods
CanConvert(Guid[], int, Guid, out RawBool)
Query if the format converter can convert from one format to another.
public void CanConvert(Guid[] srcPixelFormatsRef, int srcPlanes, Guid dstPixelFormat, out RawBool fCanConvertRef)
Parameters
srcPixelFormatsRef
Guid[]An array of WIC pixel formats that represents source image planes.
srcPlanes
intThe number of source pixel formats specified by the pSrcFormats parameter.
dstPixelFormat
GuidThe destination interleaved pixel format.
fCanConvertRef
RawBoolTrue if the conversion is supported.
Remarks
To specify an interleaved input pixel format, provide a length 1 array to pSrcPixelFormats.
Initialize(ComArray<BitmapSource>, int, Guid, BitmapDitherType, Palette, double, BitmapPaletteType)
Initializes a format converter with a planar source, and specifies the interleaved output pixel format.
public void Initialize(ComArray<BitmapSource> planesOut, int planes, Guid dstFormat, BitmapDitherType dither, Palette paletteRef, double alphaThresholdPercent, BitmapPaletteType paletteTranslate)
Parameters
planesOut
ComArray<BitmapSource>An array of BitmapSource that represents image planes.
planes
intThe number of component planes specified by the planes parameter.
dstFormat
GuidThe destination interleaved pixel format.
dither
BitmapDitherTypeThe BitmapDitherType used for conversion.
paletteRef
PaletteThe palette to use for conversion.
alphaThresholdPercent
doubleThe alpha threshold to use for conversion.
paletteTranslate
BitmapPaletteTypeThe palette translation type to use for conversion.
Initialize(BitmapSource[], int, Guid, BitmapDitherType, Palette, double, BitmapPaletteType)
Initializes a format converter with a planar source, and specifies the interleaved output pixel format.
public void Initialize(BitmapSource[] planesOut, int planes, Guid dstFormat, BitmapDitherType dither, Palette paletteRef, double alphaThresholdPercent, BitmapPaletteType paletteTranslate)
Parameters
planesOut
BitmapSource[]An array of BitmapSource that represents image planes.
planes
intThe number of component planes specified by the planes parameter.
dstFormat
GuidThe destination interleaved pixel format.
dither
BitmapDitherTypeThe BitmapDitherType used for conversion.
paletteRef
PaletteThe palette to use for conversion.
alphaThresholdPercent
doubleThe alpha threshold to use for conversion.
paletteTranslate
BitmapPaletteTypeThe palette translation type to use for conversion.
Operators
explicit operator PlanarFormatConverter(nint)
public static explicit operator PlanarFormatConverter(nint nativePtr)
Parameters
nativePtr
nint