TextureAtlas class

Constructors

TextureAtlas(double pixelRatio)

Properties

frameNames List<String>
A list with the frame-names in this texture atlas.
read-only
frames List<TextureAtlasFrame>
A list with the frames in this texture atlas.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
pixelRatio double
The pixelRatio used for the BitmapDatas in the frames
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getBitmapData(String name) BitmapData
Get the BitmapData of the frame with the given name. [...]
getBitmapDatas(String namePrefix) List<BitmapData>
Get a list of BitmapDatas of frames whose names starts with namePrefix.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Static Methods

fromBitmapData(BitmapData bitmapData, String source, [TextureAtlasFormat textureAtlasFormat = TextureAtlasFormat.JSONARRAY]) Future<TextureAtlas>
fromTextureAtlas(TextureAtlas textureAtlas, String namePrefix, String source, [TextureAtlasFormat textureAtlasFormat = TextureAtlasFormat.JSONARRAY]) Future<TextureAtlas>
load(String url, [TextureAtlasFormat textureAtlasFormat = TextureAtlasFormat.JSONARRAY, BitmapDataLoadOptions bitmapDataLoadOptions]) Future<TextureAtlas>
withLoader(TextureAtlasLoader textureAtlasLoader, [TextureAtlasFormat textureAtlasFormat = TextureAtlasFormat.JSONARRAY]) Future<TextureAtlas>