GtfDdsSharp GtfDdsSharp
GtfDdsSharp GtfDdsSharp
DocFX + Singulink = ♥

Search Results for

    Class DdsImage

    Provides properties and methods to read a DDS file and convert it to a GTF file.

    Inheritance
    object
    DdsImage
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: GtfDdsSharp
    Assembly: GtfDdsSharp.dll
    Syntax
    public class DdsImage : IDisposable

    Constructors

    Name Description
    DdsImage(byte[], ConvertOptions)

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

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

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

    DdsImage(Stream, ConvertOptions)

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

    DdsImage(nint, uint, ConvertOptions)

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

    DdsImage(ReadOnlySpan<byte>, ConvertOptions)

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

    DdsImage(string, ConvertOptions)

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

    Properties

    Name Description
    Data

    Gets a pointer to the file data.

    DdsHeader

    Gets the DDS file header.

    GtfFileSize

    Gets the size of the GTF file produced by converting this texture.

    GtfImageSize

    Gets the size of the GTF image produced by converting this texture.

    IsClosed

    Gets whether the DdsImage was disposed.

    Layouts

    Gets the layout buffer used for conversion.

    Options

    Gets the conversion options for this DdsImage.

    Size

    Gets the size of the file data in bytes.

    Texture

    Gets the GTF texture used for conversion.

    Methods

    Name Description
    ConvertToGtf()

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

    ConvertToGtf(byte*, uint)

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

    ConvertToGtf(byte[])

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

    ConvertToGtf(byte[], int, int)

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

    ConvertToGtf(Stream)

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

    ConvertToGtf(nint, uint)

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

    ConvertToGtf(Span<byte>)

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

    ConvertToGtf(string)

    Converts the DDS image to a GTF file and writes it to the specified file.

    ConvertToGtf(string, ConvertOptions)

    Converts the specified DDS file to a GTF file.

    ConvertToGtf(string, string, ConvertOptions)

    Converts the specified DDS file to a GTF file.

    ConvertToPackedGtf(IEnumerable<string>, string, ConvertOptions)

    Converts the specified DDS files to a packed GTF file.

    Dispose()

    Releases all resources used by this DdsImage.

    Dispose(bool)

    Releases the unmanaged resources used by the DdsImage and optionally releases the managed resources.

    ~DdsImage()

    Frees unmanaged memory in the event that the DdsImage is not properly disposed.