Class TextureContentFile
Namespace: ValveResourceFormat.IO
Assembly: ValveResourceFormat.dll
Represents a content file for textures with an associated bitmap.
csharp
public class TextureContentFile : ContentFile, IDisposableInheritance
object ← ContentFile ← TextureContentFile
Implements
Inherited Members
ContentFile.Data, ContentFile.FileName, ContentFile.SubFiles, ContentFile.AdditionalFiles, ContentFile.Disposed, ContentFile.AddSubFile(string, Func<byte[]>), ContentFile.Dispose(bool), ContentFile.Dispose()
Properties
Bitmap
Gets or initializes the bitmap data.
csharp
public required SKBitmap Bitmap { get; init; }Property Value
Methods
AddImageSubFile(string, Func<SKBitmap, byte[]>)
Adds an image sub-file with a custom extraction function.
csharp
public void AddImageSubFile(string fileName, Func<SKBitmap, byte[]> imageExtractFunction)Parameters
fileName string
imageExtractFunction Func<SKBitmap, byte[]>
Dispose(bool)
Releases resources used by this instance.
csharp
protected override void Dispose(bool disposing)Parameters
disposing bool

