[]
IWICBitmapDecoderInfo
[Guid("D8CD007F-D08F-4191-9BFC-236EA7F0E4B5")]
public class BitmapDecoderInfo : BitmapCodecInfo, IDisposable, IUnknown
Initializes a new instance of the BitmapDecoderInfo class.
public BitmapDecoderInfo(IntPtr nativePtr)
nativePtr System.IntPtrThe native pointer.
Gets the file pattern signatures supported by the decoder.
public BitmapPattern[] Patterns { get; }
HRESULT IWICBitmapDecoderInfo::CreateInstance([Out, Fast] IWICBitmapDecoder** ppIBitmapDecoder)
public BitmapDecoder CreateInstance()
HRESULT IWICBitmapDecoderInfo::GetPatterns([In] unsigned int cbSizePatterns,[Out, Buffer, Optional] WICBitmapPattern* pPatterns,[Out] unsigned int* pcPatterns,[Out] unsigned int* pcbPatternsActual)
public void GetPatterns(int sizePatterns, BitmapPattern[] patternsRef, out int atternCountRef, out int patternsActualRef)
sizePatterns intpatternsRef BitmapPattern[]atternCountRef intpatternsActualRef intRetrieves a value that indicates whether the codec recognizes the pattern within a specified stream.
public bool MatchesPattern(IStream stream)
stream IStreamThe stream to pattern match within.
true if the patterns match; otherwise, false.
Performs an explicit conversion from System.IntPtr to BitmapDecoderInfo.
public static explicit operator BitmapDecoderInfo(IntPtr nativePointer)
nativePointer System.IntPtr