Class DdsImageCollection
Represents a collection of DDS images. Provides properties and methods related to GTF file conversion.
Implements
Inherited Members
Namespace: GtfDdsSharp
Assembly: GtfDdsSharp.dll
Syntax
public class DdsImageCollection : IReadOnlyList<DdsImage>, IReadOnlyCollection<DdsImage>, IEnumerable<DdsImage>, IEnumerable, IDisposable
Constructors
| Name | Description |
|---|---|
| DdsImageCollection(params IEnumerable<DdsImage>) | Initializes a new instance of the DdsImageCollection class from the specified DDS images. |
| DdsImageCollection(IEnumerable<string>, ConvertOptions) | Initializes a new instance of the DdsImageCollection class from the specified DDS file paths. |
Properties
| Name | Description |
|---|---|
| Count | Gets the number of elements in the collection. |
| GtfFileSize | The size of the GTF file produced by converting the DDS images. |
| GtfHeader | The GTF file header used for conversion. |
| GtfImageSize | Gets the size of the GTF image produced by converting the DDS images. |
| Images | The DDS images in this collection. |
| this[int] | Gets the element at the specified index in the read-only list. |
| Textures | The GTF textures corresponding to each DDS image. |
Methods
| Name | Description |
|---|---|
| ConvertToGtf() | Converts the DDS images to a GTF file and writes it to a byte array. |
| ConvertToGtf(byte*, uint) | Converts the DDS images to a packed GTF file and writes it to the specified memory address. |
| ConvertToGtf(byte[]) | Converts the DDS images to a packed GTF file and writes it to the specified array. |
| ConvertToGtf(byte[], int, int) | Converts the DDS images to a packed GTF file and writes it to the specified array region. |
| ConvertToGtf(Stream) | Converts the DDS images to a packed GTF file and writes it to the specified stream. |
| ConvertToGtf(nint, uint) | Converts the DDS images to a packed GTF file and writes it to the specified memory address. |
| ConvertToGtf(Span<byte>) | Converts the DDS images to a packed GTF file and writes it to the specified region of memory. |
| ConvertToGtf(string) | Converts the DDS images to a packed GTF file and writes it to the specified file. |
| Dispose() | Releases all resources used by this DdsImageCollection. |
| Dispose(bool) | Releases the unmanaged resources used by the DdsImageCollection and optionally releases the managed resources. |
| GetEnumerator() | Returns an enumerator that iterates through the collection. |