Class AnimatedImageProvider
Package world.mappable.runtime.image
java.lang.Object
↳ world.mappable.runtime.image.AnimatedImageProvider
abstract class AnimatedImageProvider
Provides the animated image data.
Summary
Constructors
|
Signature and Description |
Methods
|
Type and modifiers |
Method and Description |
|
|
getId() |
|
|
getImage() |
|
|
fromByteArray(byte[] image) |
|
|
fromResource(android.content.Context context, |
|
|
fromAsset(android.content.Context context, |
|
|
fromFile(java.lang.String fileName) |
|
|
fromAnimatedImage(AnimatedImage image) |
Constuctors
AnimatedImageProvider
|
AnimatedImageProvider() |
Methods
getId
|
java.lang.String getId() |
Returns the unique identifier for the image.
Providers can be cached based on it.
getImage
|
java.lang.Object getImage() |
Returns an animated image data buffer.
fromByteArray
|
AnimatedImageProvider fromByteArray(byte[] image) |
Returns an animated image provider based on the given data.
Supports only APNG format.
fromResource
|
AnimatedImageProvider fromResource(android.content.Context context, |
Returns an animated image provider based on a given resource.
Supports only APNG format.
fromAsset
|
AnimatedImageProvider fromAsset(android.content.Context context, |
Returns an animated image provider based on a given asset (from the assets/ directory).
Supports only APNG format.
fromFile
|
AnimatedImageProvider fromFile(java.lang.String fileName) |
Returns an animated image provider based on an image file from the internal storage.
Supports only APNG format.
fromAnimatedImage
|
AnimatedImageProvider fromAnimatedImage(AnimatedImage image) |
Returns an animated image provider.