C# Class Tilengine.Palette

Palette resource
Exibir arquivo Open project: megamarc/Tilengine Class Usage Examples

Public Methods

Method Description
Clone ( ) : Palette

Delete ( ) : bool

FromFile ( string filename ) : Palette

Mix ( Palette src1, Palette src2, byte factor ) : bool

Palette ( int entries ) : System

SetColor ( int index, Color color ) : bool

Private Methods

Method Description
Palette ( IntPtr res ) : System

TLN_ClonePalette ( IntPtr src ) : IntPtr
TLN_CreatePalette ( int entries ) : IntPtr
TLN_DeletePalette ( IntPtr palette ) : bool
TLN_GetPaletteData ( IntPtr palette, int index ) : IntPtr
TLN_LoadPalette ( string filename ) : IntPtr
TLN_MixPalettes ( IntPtr src1, IntPtr src2, IntPtr dst, byte factor ) : bool
TLN_SetPaletteColor ( IntPtr palette, int index, byte r, byte g, byte b ) : bool

Method Details

Clone() public method

public Clone ( ) : Palette
return Palette

Delete() public method

public Delete ( ) : bool
return bool

FromFile() public static method

public static FromFile ( string filename ) : Palette
filename string
return Palette

Mix() public method

public Mix ( Palette src1, Palette src2, byte factor ) : bool
src1 Palette
src2 Palette
factor byte
return bool

Palette() public method

public Palette ( int entries ) : System
entries int
return System

SetColor() public method

public SetColor ( int index, Color color ) : bool
index int
color Color
return bool