[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.WIC.BitmapFrameDecode

Class BitmapFrameDecode

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

IWICBitmapFrameDecode

[Guid("3B16811B-6A43-4ec9-A813-3D930C13B940")]
public class BitmapFrameDecode : BitmapSource, IDisposable, IUnknown
Inheritance
object
BitmapFrameDecode
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

BitmapFrameDecode(IntPtr)

Initializes a new instance of the BitmapFrameDecode class.

public BitmapFrameDecode(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Methods

GetColorContexts(int, ComArray<ColorContext>, out int)

HRESULT IWICBitmapFrameDecode::GetColorContexts([In] unsigned int cCount,[InOut, Buffer, Optional] IWICColorContext** ppIColorContexts,[Out] unsigned int* pcActualCount)

public HResult GetColorContexts(int count, ComArray<ColorContext> colorContextsOut, out int actualCountRef)

Parameters

count int
colorContextsOut ComArray<ColorContext>
actualCountRef int

Returns

HResult

GetColorContexts(int, ColorContext[], out int)

HRESULT IWICBitmapFrameDecode::GetColorContexts([In] unsigned int cCount,[InOut, Buffer, Optional] IWICColorContext** ppIColorContexts,[Out] unsigned int* pcActualCount)

public HResult GetColorContexts(int count, ColorContext[] colorContextsOut, out int actualCountRef)

Parameters

count int
colorContextsOut ColorContext[]
actualCountRef int

Returns

HResult

GetMetadataQueryReader()

HRESULT IWICBitmapFrameDecode::GetMetadataQueryReader([Out] IWICMetadataQueryReader** ppIMetadataQueryReader)

public MetadataQueryReader GetMetadataQueryReader()

Returns

MetadataQueryReader

GetThumbnail()

HRESULT IWICBitmapFrameDecode::GetThumbnail([Out] IWICBitmapSource** ppIThumbnail)

public BitmapSource GetThumbnail()

Returns

BitmapSource

TryGetColorContexts(ImagingFactory, out ColorContext[])

Get the ColorContext of the image (if any)

public HResult TryGetColorContexts(ImagingFactory imagingFactory, out ColorContext[] colorContexts)

Parameters

imagingFactory ImagingFactory

The factory for creating new color contexts

colorContexts ColorContext[]

The color context array, or null

Returns

HResult

Remarks

When the image format does not support color contexts,

TryGetColorContexts(ImagingFactory)

Get the ColorContext of the image (if any)

public ColorContext[] TryGetColorContexts(ImagingFactory imagingFactory)

Parameters

imagingFactory ImagingFactory

Returns

ColorContext[]

null if the decoder does not support color contexts; otherwise an array of zero or more ColorContext objects

Operators

explicit operator BitmapFrameDecode(IntPtr)

Performs an explicit conversion from System.IntPtr to BitmapFrameDecode.

public static explicit operator BitmapFrameDecode(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

BitmapFrameDecode