C# Class Ultima.Gumps

显示文件 Open project: polserver/poltools Class Usage Examples

Public Methods

Method Description
GetCount ( ) : int
GetGump ( int index ) : Bitmap

Returns Bitmap of index

GetGump ( int index, Hue hue, bool onlyHueGrayPixels, bool &patched ) : Bitmap

Returns Bitmap of index and applies Hue

GetGump ( int index, bool &patched ) : Bitmap

Returns Bitmap of index and if verdata patched

GetRawGump ( int index, int &width, int &height ) : byte[]
IsValidIndex ( int index ) : bool

Tests if index is definied

Reload ( ) : void

ReReads gumpart

RemoveGump ( int index ) : void

Removes Gumpindex m_Removed

ReplaceGump ( int index, Bitmap bmp ) : void

Replaces Gump m_Cache

Save ( string path ) : void

Private Methods

Method Description
Gumps ( ) : System

Method Details

GetCount() public static method

public static GetCount ( ) : int
return int

GetGump() public static method

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

GetGump() public static method

Returns Bitmap of index and applies Hue
public static GetGump ( int index, Hue hue, bool onlyHueGrayPixels, bool &patched ) : Bitmap
index int
hue Hue
onlyHueGrayPixels bool
patched bool
return System.Drawing.Bitmap

GetGump() public static method

Returns Bitmap of index and if verdata patched
public static GetGump ( int index, bool &patched ) : Bitmap
index int
patched bool
return System.Drawing.Bitmap

GetRawGump() public static method

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

IsValidIndex() public static method

Tests if index is definied
public static IsValidIndex ( int index ) : bool
index int
return bool

Reload() public static method

ReReads gumpart
public static Reload ( ) : void
return void

RemoveGump() public static method

Removes Gumpindex m_Removed
public static RemoveGump ( int index ) : void
index int
return void

ReplaceGump() public static method

Replaces Gump m_Cache
public static ReplaceGump ( 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