UISpriteUtility Class Reference

Sprite utility. More...

List of all members.

Static Public Member Functions

static void SetupNinePatch (UISprite sprite, float width, float height, float offsetX, float offsetY, NinePatchMargin ninePatchMargin)
 Applies the 9-patch information of an image to a sprite.
static void SetupHorizontalThreePatch (UISprite sprite, float width, float height, float leftMargin, float rightMargin)
 Applies the 3-patch information of a horizontal image to a sprite.

Detailed Description

Sprite utility.


Member Function Documentation

static void SetupHorizontalThreePatch ( UISprite  sprite,
float  width,
float  height,
float  leftMargin,
float  rightMargin 
) [static]

Applies the 3-patch information of a horizontal image to a sprite.

Parameters:
spriteSprite
widthWidth of the rendering destination
heightHeight of the rendering destination
leftMarginLeft margin of the image
rightMarginRight margin of the image
static void SetupNinePatch ( UISprite  sprite,
float  width,
float  height,
float  offsetX,
float  offsetY,
NinePatchMargin  ninePatchMargin 
) [static]

Applies the 9-patch information of an image to a sprite.

Parameters:
spriteSprite
widthWidth of the rendering destination
heightHeight of the rendering destination
offsetXOffset position of the X coordinate of the rendering destination
offsetYOffset position of the Y coordinate of the rendering destination
ninePatchMargin9-patch information