[]
IWICFormatConverter
[Guid("00000301-a8f2-4877-ba0a-fd2b6645fb94")]
public class FormatConverter : BitmapSource, IDisposable, IUnknown
Initializes a new instance of the FormatConverter class.
public FormatConverter(IntPtr nativePtr)
nativePtr
IntPtrThe native pointer.
HRESULT IWICFormatConverter::CanConvert([In] const GUID& srcPixelFormat,[In] const GUID& dstPixelFormat,[Out] BOOL* pfCanConvert)
public bool CanConvert(Guid srcPixelFormat, Guid dstPixelFormat)
Initializes a new instance of the FormatConverter class.
public static FormatConverter Create(FormatConverterInfo converterInfo)
converterInfo
FormatConverterInfoThe converter info.
Initializes a new instance of the FormatConverter class.
public static FormatConverter Create(ImagingFactory factory)
factory
ImagingFactoryThe factory.
Initializes this instance with the specified bitmap source and format
public void Initialize(BitmapSource sourceRef, Guid dstFormat)
sourceRef
BitmapSourceThe source ref.
dstFormat
GuidThe destination format.
HRESULT IWICFormatConverter::Initialize([In] IWICBitmapSource* pISource,[In] const GUID& dstFormat,[In] WICBitmapDitherType dither,[In, Optional] IWICPalette* pIPalette,[In] double alphaThresholdPercent,[In] WICBitmapPaletteType paletteTranslate)
public void Initialize(BitmapSource sourceRef, Guid dstFormat, BitmapDitherType dither, Palette paletteRef, double alphaThresholdPercent, BitmapPaletteType paletteTranslate)
sourceRef
BitmapSourcedstFormat
Guiddither
BitmapDitherTypepaletteRef
PalettealphaThresholdPercent
doublepaletteTranslate
BitmapPaletteTypePerforms an explicit conversion from IntPtr to FormatConverter.
public static explicit operator FormatConverter(IntPtr nativePointer)
nativePointer
IntPtr