[]
IWICBitmapFrameDecode
[Guid("3B16811B-6A43-4ec9-A813-3D930C13B940")]
public class BitmapFrameDecode : BitmapSource, IDisposable, IUnknown
Initializes a new instance of the BitmapFrameDecode class.
public BitmapFrameDecode(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
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)
count
intcolorContextsOut
ComArray<ColorContext>actualCountRef
intHRESULT 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)
count
intcolorContextsOut
ColorContext[]actualCountRef
intHRESULT IWICBitmapFrameDecode::GetMetadataQueryReader([Out] IWICMetadataQueryReader** ppIMetadataQueryReader)
public MetadataQueryReader GetMetadataQueryReader()
HRESULT IWICBitmapFrameDecode::GetThumbnail([Out] IWICBitmapSource** ppIThumbnail)
public BitmapSource GetThumbnail()
Get the ColorContext of the image (if any)
public HResult TryGetColorContexts(ImagingFactory imagingFactory, out ColorContext[] colorContexts)
imagingFactory
ImagingFactoryThe factory for creating new color contexts
colorContexts
ColorContext[]The color context array, or null
When the image format does not support color contexts,
Get the ColorContext of the image (if any)
public ColorContext[] TryGetColorContexts(ImagingFactory imagingFactory)
imagingFactory
ImagingFactorynull if the decoder does not support color contexts; otherwise an array of zero or more ColorContext objects
Performs an explicit conversion from System.IntPtr to BitmapFrameDecode.
public static explicit operator BitmapFrameDecode(IntPtr nativePointer)
nativePointer
System.IntPtr