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