Class TextureExtract.TexturePacker
Namespace: ValveResourceFormat.IO
Assembly: ValveResourceFormat.dll
Packs masks to a new texture.
csharp
public class TextureExtract.TexturePacker : IDisposableInheritance
object ← TextureExtract.TexturePacker
Implements
Properties
Bitmap
Gets the packed bitmap.
csharp
public SKBitmap? Bitmap { get; }Property Value
DefaultColor
Gets or initializes the default color for unpacked channels.
csharp
public SKColor DefaultColor { get; init; }Property Value
Methods
Collect(SKPixmap, ChannelMapping, ChannelMapping, string)
Collects a channel from source pixmap into the packed texture.
csharp
public void Collect(SKPixmap srcPixels, ChannelMapping srcChannel, ChannelMapping dstChannel, string fileName)Parameters
srcPixels SKPixmap
srcChannel ChannelMapping
dstChannel ChannelMapping
fileName string
Dispose(bool)
Releases the resources used by the texture packer.
csharp
protected virtual void Dispose(bool disposing)Parameters
disposing bool
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
csharp
public void Dispose()
