GtfDdsSharp GtfDdsSharp
GtfDdsSharp GtfDdsSharp
DocFX + Singulink = ♥

Search Results for

    Constructor DdsImage

    DdsImage(string, ConvertOptions)

    Initializes a new instance of the DdsImage class from the specified file.

    Declaration
    public DdsImage(string path, ConvertOptions options = (ConvertOptions)0)
    Parameters
    Type Name Description
    string path

    The path to the DDS file.

    ConvertOptions options

    Specifies options for DDS to GTF conversion.

    DdsImage(Stream, ConvertOptions)

    Initializes a new instance of the DdsImage class from the specified stream.

    Declaration
    public DdsImage(Stream stream, ConvertOptions options = (ConvertOptions)0)
    Parameters
    Type Name Description
    Stream stream

    The stream containing the DDS file data.

    ConvertOptions options

    Specifies options for DDS to GTF conversion.

    DdsImage(byte[], ConvertOptions)

    Initializes a new instance of the DdsImage class from the specified array.

    Declaration
    public DdsImage(byte[] buffer, ConvertOptions options = (ConvertOptions)0)
    Parameters
    Type Name Description
    byte[] buffer

    An array of bytes containing the DDS file data.

    ConvertOptions options

    Specifies options for DDS to GTF conversion.

    DdsImage(byte[], int, int, ConvertOptions)

    Initializes a new instance of the DdsImage class from the specified array region.

    Declaration
    public DdsImage(byte[] buffer, int offset, int count, ConvertOptions options = (ConvertOptions)0)
    Parameters
    Type Name Description
    byte[] buffer

    An array of bytes containing the DDS file data.

    int offset

    The zero-based byte offset at which to read bytes.

    int count

    The maximum number of bytes to read.

    ConvertOptions options

    Specifies options for DDS to GTF conversion.

    DdsImage(ReadOnlySpan<byte>, ConvertOptions)

    Initializes a new instance of the DdsImage class from the specified region of memory.

    Declaration
    public DdsImage(ReadOnlySpan<byte> buffer, ConvertOptions options = (ConvertOptions)0)
    Parameters
    Type Name Description
    ReadOnlySpan<byte> buffer

    The region of memory containing the DDS file data.

    ConvertOptions options

    Specifies options for DDS to GTF conversion.

    DdsImage(nint, uint, ConvertOptions)

    Initializes a new instance of the DdsImage class from the specified memory address.

    Declaration
    public DdsImage(nint pointer, uint length, ConvertOptions options = (ConvertOptions)0)
    Parameters
    Type Name Description
    nint pointer

    The pointer to the DDS file data.

    uint length

    The maximum number of bytes to read.

    ConvertOptions options

    Specifies options for DDS to GTF conversion.