TextureAtlas class
Constructors
- TextureAtlas(double pixelRatio)
Properties
-
frameNames
→ List<
String> -
A list with the frame-names in this texture atlas.
no setter
-
frames
→ List<
TextureAtlasFrame> -
A list with the frames in this texture atlas.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- pixelRatio → double
-
The pixelRatio used for the BitmapDatas in the frames
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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 nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object 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>