@Deprecated
public class AndroidImageInfo
extends com.jme3.texture.image.ImageRaster
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.| Modifier and Type | Field and Description |
|---|---|
protected com.jme3.asset.AssetInfo |
assetInfo
Deprecated.
|
protected android.graphics.Bitmap |
bitmap
Deprecated.
|
protected com.jme3.texture.Image.Format |
format
Deprecated.
|
| Constructor and Description |
|---|
AndroidImageInfo(com.jme3.asset.AssetInfo assetInfo)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
android.graphics.Bitmap |
getBitmap()
Deprecated.
|
com.jme3.texture.Image.Format |
getFormat()
Deprecated.
|
int |
getHeight()
Deprecated.
|
com.jme3.math.ColorRGBA |
getPixel(int x,
int y,
com.jme3.math.ColorRGBA store)
Deprecated.
|
int |
getWidth()
Deprecated.
|
protected void |
loadBitmap()
Deprecated.
Loads the bitmap directly from the asset info, possibly updating
or creating the image object.
|
void |
notifyBitmapUploaded()
Deprecated.
|
void |
setPixel(int x,
int y,
com.jme3.math.ColorRGBA color)
Deprecated.
|
protected com.jme3.asset.AssetInfo assetInfo
protected android.graphics.Bitmap bitmap
protected com.jme3.texture.Image.Format format
public AndroidImageInfo(com.jme3.asset.AssetInfo assetInfo)
public android.graphics.Bitmap getBitmap()
public void notifyBitmapUploaded()
public com.jme3.texture.Image.Format getFormat()
public int getWidth()
getWidth in class com.jme3.texture.image.ImageRasterpublic int getHeight()
getHeight in class com.jme3.texture.image.ImageRasterpublic void setPixel(int x,
int y,
com.jme3.math.ColorRGBA color)
setPixel in class com.jme3.texture.image.ImageRasterpublic com.jme3.math.ColorRGBA getPixel(int x,
int y,
com.jme3.math.ColorRGBA store)
getPixel in class com.jme3.texture.image.ImageRasterprotected void loadBitmap()
throws java.io.IOException
java.io.IOException