Package | feathers.textures |
Class | public final class Scale3Textures |
Inheritance | Scale3Textures ![]() |
Scale3Image
.
See also
Property | Defined By | ||
---|---|---|---|
direction : String [read-only]
The direction of the sub-texture layout. | Scale3Textures | ||
first : Texture [read-only]
The texture for the first region. | Scale3Textures | ||
firstRegionSize : Number [read-only]
The size of the first region, in pixels. | Scale3Textures | ||
second : Texture [read-only]
The texture for the second region. | Scale3Textures | ||
secondRegionSize : Number [read-only]
The size of the second region, in pixels. | Scale3Textures | ||
texture : Texture [read-only]
The original texture. | Scale3Textures | ||
third : Texture [read-only]
The texture for the third region. | Scale3Textures |
Method | Defined By | ||
---|---|---|---|
Scale3Textures(texture:Texture, firstRegionSize:Number, secondRegionSize:Number, direction:String)
Constructor. | Scale3Textures |
Constant | Defined By | ||
---|---|---|---|
DIRECTION_HORIZONTAL : String = horizontal [static]
If the direction is horizontal, the layout will start on the left and continue to the right. | Scale3Textures | ||
DIRECTION_VERTICAL : String = vertical [static]
If the direction is vertical, the layout will start on the top and continue to the bottom. | Scale3Textures |
direction | property |
direction:String
[read-only] The direction of the sub-texture layout.
The default value is Scale3Textures.DIRECTION_HORIZONTAL
.
public function get direction():String
See also
first | property |
first:Texture
[read-only] The texture for the first region.
public function get first():Texture
firstRegionSize | property |
firstRegionSize:Number
[read-only] The size of the first region, in pixels.
public function get firstRegionSize():Number
second | property |
second:Texture
[read-only] The texture for the second region.
public function get second():Texture
secondRegionSize | property |
secondRegionSize:Number
[read-only] The size of the second region, in pixels.
public function get secondRegionSize():Number
texture | property |
texture:Texture
[read-only] The original texture.
public function get texture():Texture
third | property |
third:Texture
[read-only] The texture for the third region.
public function get third():Texture
Scale3Textures | () | Constructor |
public function Scale3Textures(texture:Texture, firstRegionSize:Number, secondRegionSize:Number, direction:String)
Constructor.
Parameterstexture:Texture — A Starling Texture to slice up into three regions. It is recommended to turn of mip-maps for best rendering results.
| |
firstRegionSize:Number — The size, in pixels, of the first of the three regions. This value should be based on the original texture dimensions, with no adjustments for scale factor.
| |
secondRegionSize:Number — The size, in pixels, of the second of the three regions. This value should be based on the original texture dimensions, with no adjustments for scale factor.
| |
direction:String (default = NaN ) — Indicates if the regions should be positioned horizontally or vertically.
|
DIRECTION_HORIZONTAL | Constant |
public static const DIRECTION_HORIZONTAL:String = horizontal
If the direction is horizontal, the layout will start on the left and continue to the right.
DIRECTION_VERTICAL | Constant |
public static const DIRECTION_VERTICAL:String = vertical
If the direction is vertical, the layout will start on the top and continue to the bottom.