Constructor

new (img:BitmapData, xml:Xml, color:UInt)

Variables

textColor:UInt

文本的原始颜色

Inherited Variables

Defined by TextureAtlas

path:String

Defined by Atlas

@:value(false)isTextAtlas:Bool = false

是否为文本缓存精灵表

Inherited Methods

Defined by TextureAtlas

bindScale9 (id:String, data:Dynamic):Void

给某个精灵对象绑定九宫格,在批渲染中使用Scale9时,将不需要设置scale9。

Parameters:

id
data

支持String Rectangle

dispose ():Void

getBitmapDataFrame (id:String):Frame

获取批处理位图

Parameters:

id

Returns:

Frame

getBitmapDataFrameAt (id:Int):Frame

获取批处理位图

Parameters:

id

Returns:

Frame

getBitmapDataFrames (id:String):Array<Frame>

根据名字含有进行筛选位图

 *  @param id -
 *  @return Array<BitmapData>

getRootBitmapData ():BitmapData

updateAtlas (bitmapData:BitmapData, xml:Xml):Array<Rectangle>

更新精灵表

Parameters:

bitmapData
null

xml