C# Class Ultima.Light

Datei anzeigen Open project: polserver/poltools

Public Methods

Method Description
GetCount ( ) : int

Gets count of definied lights

GetLight ( int index ) : Bitmap

Returns Bitmap of given index

GetRawLight ( int index, int &width, int &height ) : byte[]
Reload ( ) : void

ReReads light.mul

Remove ( int index ) : void

Removes Light m_Removed

Replace ( int index, Bitmap bmp ) : void

Replaces Light

Save ( string path ) : void
TestLight ( int index ) : bool

Tests if given index is valid

Method Details

GetCount() public static method

Gets count of definied lights
public static GetCount ( ) : int
return int

GetLight() public static method

Returns Bitmap of given index
public static GetLight ( int index ) : Bitmap
index int
return System.Drawing.Bitmap

GetRawLight() public static method

public static GetRawLight ( int index, int &width, int &height ) : byte[]
index int
width int
height int
return byte[]

Reload() public static method

ReReads light.mul
public static Reload ( ) : void
return void

Remove() public static method

Removes Light m_Removed
public static Remove ( int index ) : void
index int
return void

Replace() public static method

Replaces Light
public static Replace ( int index, Bitmap bmp ) : void
index int
bmp System.Drawing.Bitmap
return void

Save() public static method

public static Save ( string path ) : void
path string
return void

TestLight() public static method

Tests if given index is valid
public static TestLight ( int index ) : bool
index int
return bool