Packagefeathers.textures
Classpublic final class Scale9Textures
InheritanceScale9Textures Inheritance Object

Slices a Starling Texture into nine regions to be used by Scale9Image.

See also

feathers.display.Scale9Image


Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined By
  
Scale9Textures(texture:Texture, scale9Grid:Rectangle)
Constructor.
Scale9Textures
Property Detail
bottomCenterproperty
bottomCenter:Texture  [read-only]

The texture for the region in the bottom center.


Implementation
    public function get bottomCenter():Texture
bottomLeftproperty 
bottomLeft:Texture  [read-only]

The texture for the region in the bottom left.


Implementation
    public function get bottomLeft():Texture
bottomRightproperty 
bottomRight:Texture  [read-only]

The texture for the region in the bottom right.


Implementation
    public function get bottomRight():Texture
middleCenterproperty 
middleCenter:Texture  [read-only]

The texture for the region in the middle center.


Implementation
    public function get middleCenter():Texture
middleLeftproperty 
middleLeft:Texture  [read-only]

The texture for the region in the middle left.


Implementation
    public function get middleLeft():Texture
middleRightproperty 
middleRight:Texture  [read-only]

The texture for the region in the middle right.


Implementation
    public function get middleRight():Texture
scale9Gridproperty 
scale9Grid:Rectangle  [read-only]

The grid representing the nine sub-regions of the texture.


Implementation
    public function get scale9Grid():Rectangle
textureproperty 
texture:Texture  [read-only]

The original texture.


Implementation
    public function get texture():Texture
topCenterproperty 
topCenter:Texture  [read-only]

The texture for the region in the top center.


Implementation
    public function get topCenter():Texture
topLeftproperty 
topLeft:Texture  [read-only]

The texture for the region in the top Left.


Implementation
    public function get topLeft():Texture
topRightproperty 
topRight:Texture  [read-only]

The texture for the region in the top right.


Implementation
    public function get topRight():Texture
Constructor Detail
Scale9Textures()Constructor
public function Scale9Textures(texture:Texture, scale9Grid:Rectangle)

Constructor.

Parameters
texture: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.