Constructor

new ()

Variables

@:value(0)frameHeight:Float = 0

@:value(0)frameWidth:Float = 0

@:value(0)frameX:Float = 0

@:value(0)frameY:Float = 0

@:value(null)name:String = null

@:value(false)rotate:Bool = false

Methods

getRect ():Rectangle

获取图片的矩形

getScale9GirdTileset (rect:Rectangle):Tileset

获取九宫格配置 九宫格用于指定缩放的区域,如一个图形的大小为100,100 scaleGrid参数设置为scaleGridTop=2,scaleGridBottom=98, scaleGridLeft=2, scaleGridRight=98, 则当对此图形做缩放时,x轴是2-98之间的像素做缩放 y轴是2-98之间的像素做缩放, x轴0-2,98-100的像素保持不变,y轴0-2,98-100的像素保持不变。如下图红色区域表示拉伸的像素, 绿色区域表示不变的像素。

Returns:

Tileset

getTexture3D ():Dynamic

获取Away3D使用的纹理

Returns:

Dynamic

getUv ():Array<Float>

Inherited Variables

Defined by Slice9Frame

read onlyscale9frames:Array<Frame>

九宫格配置

scale9rect:Rectangle

Defined by BaseFrame

height:Float

@:value(-1)id:Int = -1

瓦片ID

width:Float

@:value(0)x:Float = 0

@:value(0)y:Float = 0

Inherited Methods

Defined by BaseFrame

toString ():String