[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.WIC.FormatConverter

Class FormatConverter

Namespace
GrapeCity.Documents.DX.WIC
Assembly
GcDocs.DX.Windows.dll

IWICFormatConverter

[Guid("00000301-a8f2-4877-ba0a-fd2b6645fb94")]
public class FormatConverter : BitmapSource, IDisposable, IUnknown
Inheritance
object
FormatConverter
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

FormatConverter(IntPtr)

Initializes a new instance of the FormatConverter class.

public FormatConverter(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Methods

CanConvert(Guid, Guid)

HRESULT IWICFormatConverter::CanConvert([In] const GUID& srcPixelFormat,[In] const GUID& dstPixelFormat,[Out] BOOL* pfCanConvert)

public bool CanConvert(Guid srcPixelFormat, Guid dstPixelFormat)

Parameters

srcPixelFormat System.Guid
dstPixelFormat System.Guid

Returns

bool

Create(FormatConverterInfo)

Initializes a new instance of the FormatConverter class.

public static FormatConverter Create(FormatConverterInfo converterInfo)

Parameters

converterInfo FormatConverterInfo

The converter info.

Returns

FormatConverter

Create(ImagingFactory)

Initializes a new instance of the FormatConverter class.

public static FormatConverter Create(ImagingFactory factory)

Parameters

factory ImagingFactory

The factory.

Returns

FormatConverter

Initialize(BitmapSource, Guid, BitmapDitherType, Palette, double, BitmapPaletteType)

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)

Parameters

sourceRef BitmapSource
dstFormat System.Guid
dither BitmapDitherType
paletteRef Palette
alphaThresholdPercent double
paletteTranslate BitmapPaletteType

Initialize(BitmapSource, Guid)

Initializes this instance with the specified bitmap source and format

public void Initialize(BitmapSource sourceRef, Guid dstFormat)

Parameters

sourceRef BitmapSource

The source ref.

dstFormat System.Guid

The destination format.

Operators

explicit operator FormatConverter(IntPtr)

Performs an explicit conversion from System.IntPtr to FormatConverter.

public static explicit operator FormatConverter(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

FormatConverter