GtfDdsSharp GtfDdsSharp
GtfDdsSharp GtfDdsSharp
DocFX + Singulink = ♥

Search Results for

    Method ConvertToDds

    ConvertToDds()

    Converts the texture to a DDS file and writes it to a byte array.

    Declaration
    public byte[] ConvertToDds()
    Returns
    Type Description
    byte[]

    A byte array containing the DDS file.

    ConvertToDds(string)

    Converts the texture to a DDS file and writes it to the specified file.

    Declaration
    public void ConvertToDds(string path)
    Parameters
    Type Name Description
    string path

    The file to write the DDS file to.

    ConvertToDds(Stream)

    Converts the texture to a DDS file and writes it to the specified stream.

    Declaration
    public void ConvertToDds(Stream stream)
    Parameters
    Type Name Description
    Stream stream

    The stream to write the DDS file to.

    ConvertToDds(byte[])

    Converts the texture to a DDS file and writes it to the specified array.

    Declaration
    public void ConvertToDds(byte[] buffer)
    Parameters
    Type Name Description
    byte[] buffer

    The array to write the DDS file to.

    ConvertToDds(byte[], int, int)

    Converts the texture to a DDS file and writes it to the specified array region.

    Declaration
    public void ConvertToDds(byte[] buffer, int offset, int count)
    Parameters
    Type Name Description
    byte[] buffer

    The array to write the DDS file to.

    int offset

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

    int count

    The maximum number of bytes to write.

    ConvertToDds(Span<byte>)

    Converts the texture to a DDS file and writes it to the specified region of memory.

    Declaration
    public void ConvertToDds(Span<byte> buffer)
    Parameters
    Type Name Description
    Span<byte> buffer

    The region of memory to write the DDS file to.

    ConvertToDds(nint, uint)

    Converts the texture to a DDS file and writes it to the specified memory address.

    Declaration
    public void ConvertToDds(nint pointer, uint length)
    Parameters
    Type Name Description
    nint pointer

    The pointer to write the DDS file to.

    uint length

    The maximum number of bytes to write.

    ConvertToDds(byte*, uint)

    Converts the texture to a DDS file and writes it to the specified memory address.

    Declaration
    public void ConvertToDds(byte* pointer, uint length)
    Parameters
    Type Name Description
    byte* pointer

    The pointer to write the DDS file to.

    uint length

    The maximum number of bytes to write.