Package | feathers.textures |
Class | public final class Scale9Textures |
Inheritance | Scale9Textures ![]() |
Scale9Image
.
See also
Property | Defined By | ||
---|---|---|---|
bottomCenter : Texture [read-only]
The texture for the region in the bottom center. | Scale9Textures | ||
bottomLeft : Texture [read-only]
The texture for the region in the bottom left. | Scale9Textures | ||
bottomRight : Texture [read-only]
The texture for the region in the bottom right. | Scale9Textures | ||
middleCenter : Texture [read-only]
The texture for the region in the middle center. | Scale9Textures | ||
middleLeft : Texture [read-only]
The texture for the region in the middle left. | Scale9Textures | ||
middleRight : Texture [read-only]
The texture for the region in the middle right. | Scale9Textures | ||
scale9Grid : Rectangle [read-only]
The grid representing the nine sub-regions of the texture. | Scale9Textures | ||
texture : Texture [read-only]
The original texture. | Scale9Textures | ||
topCenter : Texture [read-only]
The texture for the region in the top center. | Scale9Textures | ||
topLeft : Texture [read-only]
The texture for the region in the top Left. | Scale9Textures | ||
topRight : Texture [read-only]
The texture for the region in the top right. | Scale9Textures |
Method | Defined By | ||
---|---|---|---|
Scale9Textures(texture:Texture, scale9Grid:Rectangle)
Constructor. | Scale9Textures |
bottomCenter | property |
bottomCenter:Texture
[read-only] The texture for the region in the bottom center.
public function get bottomCenter():Texture
bottomLeft | property |
bottomLeft:Texture
[read-only] The texture for the region in the bottom left.
public function get bottomLeft():Texture
bottomRight | property |
bottomRight:Texture
[read-only] The texture for the region in the bottom right.
public function get bottomRight():Texture
middleCenter | property |
middleCenter:Texture
[read-only] The texture for the region in the middle center.
public function get middleCenter():Texture
middleLeft | property |
middleLeft:Texture
[read-only] The texture for the region in the middle left.
public function get middleLeft():Texture
middleRight | property |
middleRight:Texture
[read-only] The texture for the region in the middle right.
public function get middleRight():Texture
scale9Grid | property |
scale9Grid:Rectangle
[read-only] The grid representing the nine sub-regions of the texture.
public function get scale9Grid():Rectangle
texture | property |
texture:Texture
[read-only] The original texture.
public function get texture():Texture
topCenter | property |
topCenter:Texture
[read-only] The texture for the region in the top center.
public function get topCenter():Texture
topLeft | property |
topLeft:Texture
[read-only] The texture for the region in the top Left.
public function get topLeft():Texture
topRight | property |
topRight:Texture
[read-only] The texture for the region in the top right.
public function get topRight():Texture
Scale9Textures | () | Constructor |
public function Scale9Textures(texture:Texture, scale9Grid:Rectangle)
Constructor.
Parameterstexture:Texture — A Starling Texture to slice up into nine regions. It is recommended to turn of mip-maps for best rendering results.
| |
scale9Grid:Rectangle — The rectangle defining the region in the horizontal center and vertical middle, with other regions being calculated automatically. This value should be based on the original texture dimensions, with no adjustments for scale factor.
|