Rabbit Escape  2017-01-14_18:33:47_+0000__(tag:_v0.10.1)
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
rabbitescape.ui.android.AndroidBitmapLoader Class Reference
Inheritance diagram for rabbitescape.ui.android.AndroidBitmapLoader:
Inheritance graph
[legend]
Collaboration diagram for rabbitescape.ui.android.AndroidBitmapLoader:
Collaboration graph
[legend]

Public Member Functions

 AndroidBitmapLoader (Resources resources)
 
AndroidBitmap load (String name, int tileSize)
 
int sizeFor (int tileSize)
 

Private Attributes

final Resources resources
 

Static Private Attributes

static final int[] SIZES = new int[] { 32, 64, 128 }
 

Constructor & Destructor Documentation

rabbitescape.ui.android.AndroidBitmapLoader.AndroidBitmapLoader ( Resources  resources)

Member Function Documentation

AndroidBitmap rabbitescape.ui.android.AndroidBitmapLoader.load ( String  fileName,
int  tileSize 
)
Parameters
fileNamethe thing to load
tileSizethe tileSize you will use: MUST be a value got from a previous call to sizeFor().
Returns
a loaded bitmap

Implements rabbitescape.render.BitmapLoader< T extends Bitmap >.

int rabbitescape.ui.android.AndroidBitmapLoader.sizeFor ( int  tileSize)
Returns
the recommended tile size to ask for if you're going to scale your image to the supplied tileSize.

Implements rabbitescape.render.BitmapLoader< T extends Bitmap >.

Member Data Documentation

final Resources rabbitescape.ui.android.AndroidBitmapLoader.resources
private
final int [] rabbitescape.ui.android.AndroidBitmapLoader.SIZES = new int[] { 32, 64, 128 }
staticprivate

The documentation for this class was generated from the following file: