[]
        
(Showing Draft Content)

C1.Util.DX.WIC.DdsFrameDecode.CopyBlocks

CopyBlocks Method

CopyBlocks(RectL?, int, DataStream)

Requests pixel data as it is natively stored within the DDS file.

Declaration
public void CopyBlocks(RectL? boundsInBlocks, int stride, DataStream destination)
Parameters
Type Name Description
RectL? boundsInBlocks

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.

int stride

The 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.

DataStream destination

A reference to the destination buffer.

CopyBlocks(RectL?, int, int, IntPtr)

HRESULT IWICDdsFrameDecode::CopyBlocks([In, Optional] const WICRect* prcBoundsInBlocks,[In] unsigned int cbStride,[In] unsigned int cbBufferSize,[In] void* pbBuffer)

Declaration
public void CopyBlocks(RectL? rcBoundsInBlocksRef, int stride, int bufferSize, IntPtr bufferRef)
Parameters
Type Name Description
RectL? rcBoundsInBlocksRef
int stride
int bufferSize
IntPtr bufferRef