Sprite utility. More...
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. | |
Sprite utility.
| 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.
| sprite | Sprite |
| width | Width of the rendering destination |
| height | Height of the rendering destination |
| leftMargin | Left margin of the image |
| rightMargin | Right 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.
| sprite | Sprite |
| width | Width of the rendering destination |
| height | Height of the rendering destination |
| offsetX | Offset position of the X coordinate of the rendering destination |
| offsetY | Offset position of the Y coordinate of the rendering destination |
| ninePatchMargin | 9-patch information |