[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.WIC.DdsFrameDecode

Class DdsFrameDecode

Namespace
GrapeCity.Documents.DX.WIC
Assembly
GcDocs.DX.Windows.dll

IWICDdsFrameDecode

[Guid("3d4c0c61-18a4-41e4-bd80-481a4fc9f464")]
public class DdsFrameDecode : ComObject, IDisposable, IUnknown
Inheritance
object
DdsFrameDecode
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

DdsFrameDecode(IntPtr)

Initializes a new instance of the DdsFrameDecode class.

public DdsFrameDecode(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Properties

FormatInfo

GetFormatInfo

public DdsFormatInfo FormatInfo { get; }

Property Value

DdsFormatInfo

SizeInBlocks

Gets the width and height, in blocks, of the DDS image.

public Size2L SizeInBlocks { get; }

Property Value

Size2L

Methods

CopyBlocks(RectL?, int, DataStream)

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

public void CopyBlocks(RectL? boundsInBlocks, int stride, DataStream destination)

Parameters

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 int

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.

destination DataStream

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)

public void CopyBlocks(RectL? rcBoundsInBlocksRef, int stride, int bufferSize, IntPtr bufferRef)

Parameters

rcBoundsInBlocksRef RectL?
stride int
bufferSize int
bufferRef System.IntPtr

GetFormatInfo(out DdsFormatInfo)

HRESULT IWICDdsFrameDecode::GetFormatInfo([Out] WICDdsFormatInfo* pFormatInfo)

public void GetFormatInfo(out DdsFormatInfo formatInfoRef)

Parameters

formatInfoRef DdsFormatInfo

GetSizeInBlocks(out int, out int)

HRESULT IWICDdsFrameDecode::GetSizeInBlocks([Out] unsigned int* pWidthInBlocks,[Out] unsigned int* pHeightInBlocks)

public void GetSizeInBlocks(out int widthInBlocksRef, out int heightInBlocksRef)

Parameters

widthInBlocksRef int
heightInBlocksRef int

Operators

explicit operator DdsFrameDecode(IntPtr)

Performs an explicit conversion from System.IntPtr to DdsFrameDecode.

public static explicit operator DdsFrameDecode(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

DdsFrameDecode