C# Class XCom.Palette

A class defining a color array of 256 values
ファイルを表示 Open project: pmprog/OpenXCOM.Tools Class Usage Examples

Public Methods

Method Description
Equals ( Object other ) : bool

tests for palette equality

GetHashCode ( ) : int
GetPalette ( string name ) : Palette
Palette ( Stream s ) : System
Palette ( string name ) : System
SetTransparent ( bool val ) : void
SetTransparent ( bool val, int index ) : void
ToString ( ) : string
this ( int i ) : Color

Indexes colors on number

Method Details

Equals() public method

tests for palette equality
public Equals ( Object other ) : bool
other Object another palette
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetPalette() public static method

public static GetPalette ( string name ) : Palette
name string
return Palette

Palette() public method

public Palette ( Stream s ) : System
s Stream
return System

Palette() public method

public Palette ( string name ) : System
name string
return System

SetTransparent() public method

public SetTransparent ( bool val ) : void
val bool
return void

SetTransparent() public method

public SetTransparent ( bool val, int index ) : void
val bool
index int
return void

ToString() public method

public ToString ( ) : string
return string

this() public method

Indexes colors on number
public this ( int i ) : Color
i int
return Color