Table of Contents

Class PlanarFormatConverter

Namespace
SharpDX.WIC
Assembly
SharpDX.Direct2D1.dll
[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 int

The number of source pixel formats specified by the pSrcFormats parameter.

dstPixelFormat Guid

The destination interleaved pixel format.

fCanConvertRef RawBool

True 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 int

The number of component planes specified by the planes parameter.

dstFormat Guid

The destination interleaved pixel format.

dither BitmapDitherType

The BitmapDitherType used for conversion.

paletteRef Palette

The palette to use for conversion.

alphaThresholdPercent double

The alpha threshold to use for conversion.

paletteTranslate BitmapPaletteType

The 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 int

The number of component planes specified by the planes parameter.

dstFormat Guid

The destination interleaved pixel format.

dither BitmapDitherType

The BitmapDitherType used for conversion.

paletteRef Palette

The palette to use for conversion.

alphaThresholdPercent double

The alpha threshold to use for conversion.

paletteTranslate BitmapPaletteType

The palette translation type to use for conversion.

Operators

explicit operator PlanarFormatConverter(nint)

public static explicit operator PlanarFormatConverter(nint nativePtr)

Parameters

nativePtr nint

Returns

PlanarFormatConverter