C# Class Tibialyzer.OutfiterOutfit

Afficher le fichier Open project: Mytherin/Tibialyzer Class Usage Examples

Méthodes publiques

Свойство Type Description
addon1 bool
addon2 bool
colors int[]
facing Facing
gender Gender
mount int
outfit int

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat void

GetImage() public méthode

Get the image of the current outfit
public GetImage ( ) : Image
Résultat Image

Rotate() public méthode

public Rotate ( int offset ) : void
offset int
Résultat void

SwitchMount() public méthode

public SwitchMount ( int offset ) : void
offset int
Résultat void

SwitchOutfit() public méthode

public SwitchOutfit ( int offset ) : void
offset int
Résultat void

ToString() public méthode

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

Validate() public méthode

public Validate ( ) : void
Résultat void

Property Details

addon1 public_oe property

public bool addon1
Résultat bool

addon2 public_oe property

public bool addon2
Résultat bool

colors public_oe property

public int[] colors
Résultat int[]

facing public_oe property

public Facing facing
Résultat Facing

gender public_oe property

public Gender gender
Résultat Gender

mount public_oe property

public int mount
Résultat int

outfit public_oe property

public int outfit
Résultat int