com.jme3.asset
Class AndroidImageInfo

java.lang.Object
  extended by com.jme3.asset.AndroidImageInfo

public class AndroidImageInfo
extends java.lang.Object

AndroidImageInfo is set in a jME3 image via the Image.setEfficentData(java.lang.Object) method to retrieve a Bitmap when it is needed by the renderer. User code may extend AndroidImageInfo and provide their own implementation of the loadBitmap() method to acquire a bitmap by their own means.


Field Summary
protected  AssetInfo assetInfo
           
protected  android.graphics.Bitmap bitmap
           
protected  Image.Format format
           
 
Constructor Summary
AndroidImageInfo(AssetInfo assetInfo)
           
 
Method Summary
 android.graphics.Bitmap getBitmap()
           
 Image.Format getFormat()
           
protected  void loadBitmap()
          Loads the bitmap directly from the asset info, possibly updating or creating the image object.
 void notifyBitmapUploaded()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

assetInfo

protected AssetInfo assetInfo

bitmap

protected android.graphics.Bitmap bitmap

format

protected Image.Format format
Constructor Detail

AndroidImageInfo

public AndroidImageInfo(AssetInfo assetInfo)
Method Detail

getBitmap

public android.graphics.Bitmap getBitmap()

notifyBitmapUploaded

public void notifyBitmapUploaded()

getFormat

public Image.Format getFormat()

loadBitmap

protected void loadBitmap()
                   throws java.io.IOException
Loads the bitmap directly from the asset info, possibly updating or creating the image object.

Throws:
java.io.IOException