[]
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 System.IntPtrThe native pointer.
HRESULT IWICFormatConverter::CanConvert([In] const GUID& srcPixelFormat,[In] const GUID& dstPixelFormat,[Out] BOOL* pfCanConvert)
public bool CanConvert(Guid srcPixelFormat, Guid dstPixelFormat)
srcPixelFormat System.GuiddstPixelFormat System.GuidInitializes 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.
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 System.Guiddither BitmapDitherTypepaletteRef PalettealphaThresholdPercent doublepaletteTranslate BitmapPaletteTypeInitializes this instance with the specified bitmap source and format
public void Initialize(BitmapSource sourceRef, Guid dstFormat)
sourceRef BitmapSourceThe source ref.
dstFormat System.GuidThe destination format.
Performs an explicit conversion from System.IntPtr to FormatConverter.
public static explicit operator FormatConverter(IntPtr nativePointer)
nativePointer System.IntPtr