[]
IWICDdsFrameDecode
[Guid("3d4c0c61-18a4-41e4-bd80-481a4fc9f464")]
public class DdsFrameDecode : ComObject, IDisposable, IUnknown
Initializes a new instance of the DdsFrameDecode class.
public DdsFrameDecode(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
GetFormatInfo
public DdsFormatInfo FormatInfo { get; }
Gets the width and height, in blocks, of the DDS image.
public Size2L SizeInBlocks { get; }
Requests pixel data as it is natively stored within the DDS file.
public void CopyBlocks(RectL? boundsInBlocks, int stride, DataStream destination)
boundsInBlocks
RectL?The rectangle to copy from the source. A null
value specifies the entire texture. If the texture uses a block-compressed Format, all values of the rectangle are expressed in number of blocks, not pixels.
stride
intThe stride, in bytes, of the destination buffer. This represents the number of bytes from the buffer reference to the next row of data. If the texture uses a block-compressed Format, a "row of data" is defined as a row of blocks which contains multiple pixel scanlines.
destination
DataStreamA reference to the destination buffer.
HRESULT IWICDdsFrameDecode::CopyBlocks([In, Optional] const WICRect* prcBoundsInBlocks,[In] unsigned int cbStride,[In] unsigned int cbBufferSize,[In] void* pbBuffer)
public void CopyBlocks(RectL? rcBoundsInBlocksRef, int stride, int bufferSize, IntPtr bufferRef)
rcBoundsInBlocksRef
RectL?stride
intbufferSize
intbufferRef
System.IntPtrHRESULT IWICDdsFrameDecode::GetFormatInfo([Out] WICDdsFormatInfo* pFormatInfo)
public void GetFormatInfo(out DdsFormatInfo formatInfoRef)
formatInfoRef
DdsFormatInfoHRESULT IWICDdsFrameDecode::GetSizeInBlocks([Out] unsigned int* pWidthInBlocks,[Out] unsigned int* pHeightInBlocks)
public void GetSizeInBlocks(out int widthInBlocksRef, out int heightInBlocksRef)
widthInBlocksRef
intheightInBlocksRef
intPerforms an explicit conversion from System.IntPtr to DdsFrameDecode.
public static explicit operator DdsFrameDecode(IntPtr nativePointer)
nativePointer
System.IntPtr