Table of Contents

Class TextureExtract.TexturePacker

Namespace
ValveResourceFormat.IO
Assembly
ValveResourceFormat.dll

Packs masks to a new texture.

public class TextureExtract.TexturePacker : IDisposable

Inheritance

Implements

Inherited Members

Properties

Bitmap

Gets the packed bitmap.

public SKBitmap Bitmap { get; }

Property Value

SKBitmap

DefaultColor

Gets or initializes the default color for unpacked channels.

public SKColor DefaultColor { get; init; }

Property Value

SKColor

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

srcPixels SKPixmap
srcChannel ChannelMapping
dstChannel ChannelMapping
fileName string

Dispose(bool)

Releases the resources used by the texture packer.

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()