C# Class Tibialyzer.OutfiterOutfit

Mostra file Open project: Mytherin/Tibialyzer Class Usage Examples

Public Properties

Property Type Description
addon1 bool
addon2 bool
colors int[]
facing Facing
gender Gender
mount int
outfit int

Public Methods

Method Description
FromString ( string str ) : void

Modify the current outfit based on the specified string; this is either a tibia.wikia outfiter URL or just the GET parameters of one.

GetImage ( ) : Image

Get the image of the current outfit

Rotate ( int offset ) : void
SwitchMount ( int offset ) : void
SwitchOutfit ( int offset ) : void
ToString ( ) : string

Convert the Outfit to a string, this is the same format as the GET used by the tibia.wikia outfiter

Validate ( ) : void

Private Methods

Method Description
BlendPixels ( Bitmap main, Bitmap blend, int colors ) : Bitmap

Blends the specified colors onto "main", according to the blend pattern specified by "blend" Blend contains either (255,255,0) for colors[0]; (255,0,0) for colors [1]; (0,255,0) for colors[2]; (0,0,255) for colors[3]; or Transparent for nothing

GetAddon ( int i ) : bool
GetRegion ( Bitmap source, int x, int y ) : Bitmap

Get a 64x64 rectangle from the input image at the specified (x,y) indexes (i.e. actual coordinates used are x * 64, y * 64)

MergePixels ( Bitmap bottom, Bitmap top ) : Bitmap

Overlay the top image over the bottom image, always returns a new bitmap

Method Details

FromString() public method

Modify the current outfit based on the specified string; this is either a tibia.wikia outfiter URL or just the GET parameters of one.
public FromString ( string str ) : void
str string
return void

GetImage() public method

Get the image of the current outfit
public GetImage ( ) : Image
return Image

Rotate() public method

public Rotate ( int offset ) : void
offset int
return void

SwitchMount() public method

public SwitchMount ( int offset ) : void
offset int
return void

SwitchOutfit() public method

public SwitchOutfit ( int offset ) : void
offset int
return void

ToString() public method

Convert the Outfit to a string, this is the same format as the GET used by the tibia.wikia outfiter
public ToString ( ) : string
return string

Validate() public method

public Validate ( ) : void
return void

Property Details

addon1 public_oe property

public bool addon1
return bool

addon2 public_oe property

public bool addon2
return bool

colors public_oe property

public int[] colors
return int[]

facing public_oe property

public Facing facing
return Facing

gender public_oe property

public Gender gender
return Gender

mount public_oe property

public int mount
return int

outfit public_oe property

public int outfit
return int