public class TextureProviderFile extends TextureProvider
Implementation of TextureProvider
that loads a file.
TextureProvider.OverlayType
Constructor and Description |
---|
TextureProviderFile(String filePath)
Constructs a TextureProvider using the file provided.
|
Modifier and Type | Method and Description |
---|---|
Bitmap |
getBitmap()
Gets a bitmap to be loaded as a texture.
|
getId, getNativeBitmap, getOverlayColor, getOverlayColorInterface, getOverlayFillColor, getOverlayFillColorInterface, getOverlayPoints, getOverlayPointsInterface, getOverlayType, getOverlayTypeInterface, getOverlayWidth, getOverlayWidthInterface, getSize, overlayClosed, setSize
public TextureProviderFile(String filePath)
Constructs a TextureProvider using the file provided. If there is an error loading the file getBitmap will return null.
public Bitmap getBitmap()
TextureProvider
Gets a bitmap to be loaded as a texture.
getBitmap
in class TextureProvider