C# Class AlbLib.Imaging.TransparencyTable

Show file Open project: IllidanS4/AlbLib Class Usage Examples

Public Methods

Method Description
GetResultingColorIndex ( byte overlaying, byte underlaying, TransparencyType type ) : byte

Gets resulting color when blending two others.

GetTransparencyTable ( int palette ) : TransparencyTable

Loads transparency table for palette.

TransparencyTable ( Stream input ) : System
TransparencyTable ( byte source ) : System
TransparencyTable ( int palette, Stream input ) : System
TransparencyTable ( int palette, byte source ) : System

Method Details

GetResultingColorIndex() public method

Gets resulting color when blending two others.
public GetResultingColorIndex ( byte overlaying, byte underlaying, TransparencyType type ) : byte
overlaying byte /// Foreground color. ///
underlaying byte /// Background color. ///
type TransparencyType /// Type of blending. ///
return byte

GetTransparencyTable() public static method

Loads transparency table for palette.
public static GetTransparencyTable ( int palette ) : TransparencyTable
palette int /// One-based palette index. ///
return TransparencyTable

TransparencyTable() public method

public TransparencyTable ( Stream input ) : System
input Stream /// Stream containing the table. ///
return System

TransparencyTable() public method

public TransparencyTable ( byte source ) : System
source byte /// Byte array containing the table. ///
return System

TransparencyTable() public method

public TransparencyTable ( int palette, Stream input ) : System
palette int /// Palette which this table applies to. ///
input Stream /// Stream containing the table. ///
return System

TransparencyTable() public method

public TransparencyTable ( int palette, byte source ) : System
palette int /// Palette which this table applies to. ///
source byte /// Byte array containing the table. ///
return System