[]
IWICPixelFormatInfo
[Guid("E8EDA601-3D48-431a-AB44-69059BE88BBE")]
public class PixelFormatInfo : ComponentInfo, IDisposable, IUnknown
Initializes a new instance of the PixelFormatInfo class.
public PixelFormatInfo(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
HRESULT IWICPixelFormatInfo::GetBitsPerPixel([Out] unsigned int* puiBitsPerPixel)
public int GetBitsPerPixel()
HRESULT IWICPixelFormatInfo::GetChannelCount([Out] unsigned int* puiChannelCount)
public int GetChannelCount()
HRESULT IWICPixelFormatInfo::GetChannelMask([In] unsigned int uiChannelIndex,[In] unsigned int cbMaskBuffer,[In] void* pbMaskBuffer,[Out] unsigned int* pcbActual)
public int GetChannelMask(int channelIndex, int maskBuffer, IntPtr maskBufferRef)
channelIndex
intmaskBuffer
intmaskBufferRef
System.IntPtrGets the channel mask.
public byte[] GetChannelMask(int channelIndex)
channelIndex
intIndex of the channel.
HRESULT IWICPixelFormatInfo::GetColorContext([Out] IWICColorContext** ppIColorContext)
public ColorContext GetColorContext()
HRESULT IWICPixelFormatInfo::GetFormatGUID([Out] GUID* pFormat)
public Guid GetFormatGUID()
Performs an explicit conversion from System.IntPtr to PixelFormatInfo.
public static explicit operator PixelFormatInfo(IntPtr nativePointer)
nativePointer
System.IntPtr