public class FlashImage extends Object implements Image
Image.BitmapTransformer, Image.Region| Modifier and Type | Field and Description |
|---|---|
protected BitmapData |
imageData |
| Constructor and Description |
|---|
FlashImage(BitmapData data) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCallback(Callback<? super Image> callback) |
BitmapData |
bitmapData()
Returns the
BitmapData that underlies this image. |
void |
clearTexture() |
int |
ensureTexture() |
void |
getRgb(int startX,
int startY,
int width,
int height,
int[] rgbArray,
int offset,
int scanSize) |
float |
height() |
boolean |
isReady() |
boolean |
repeatX() |
boolean |
repeatY() |
Scale |
scale() |
void |
setMipmapped(boolean mipmapped) |
void |
setRepeat(boolean repeatX,
boolean repeatY) |
Image.Region |
subImage(float x,
float y,
float width,
float height) |
Pattern |
toPattern() |
Image |
transform(Image.BitmapTransformer xform) |
float |
width() |
protected BitmapData imageData
public FlashImage(BitmapData data)
public BitmapData bitmapData()
BitmapData that underlies this image. This is for games that need to write
custom backend code to do special stuff. No promises are made, caveat coder.public void addCallback(Callback<? super Image> callback)
addCallback in interface Imagepublic void setRepeat(boolean repeatX,
boolean repeatY)
public Image.Region subImage(float x, float y, float width, float height)
public void getRgb(int startX,
int startY,
int width,
int height,
int[] rgbArray,
int offset,
int scanSize)
public Image transform(Image.BitmapTransformer xform)
public void setMipmapped(boolean mipmapped)
setMipmapped in interface Imagepublic int ensureTexture()
ensureTexture in interface Imagepublic void clearTexture()
clearTexture in interface ImageCopyright © 2013. All Rights Reserved.