public class AndroidImage extends ImageImpl
ImageImpl.DataImage.BitmapTransformer, Image.Region| Constructor and Description |
|---|
AndroidImage(AndroidPlatform plat,
boolean async,
int preWidth,
int preHeight,
String source) |
AndroidImage(Graphics gfx,
Scale scale,
android.graphics.Bitmap bitmap,
String source) |
| Modifier and Type | Method and Description |
|---|---|
android.graphics.Bitmap |
bitmap()
Returns the
Bitmap that underlies this image. |
Pattern |
createPattern(boolean repeatX,
boolean repeatY) |
void |
draw(Object ctx,
float x,
float y,
float w,
float h) |
void |
draw(Object ctx,
float dx,
float dy,
float dw,
float dh,
float sx,
float sy,
float sw,
float sh) |
void |
getRgb(int startX,
int startY,
int width,
int height,
int[] rgbArray,
int offset,
int scanSize) |
void |
setRgb(int startX,
int startY,
int width,
int height,
int[] rgbArray,
int offset,
int scanSize) |
String |
toString() |
Image |
transform(Image.BitmapTransformer xform) |
fail, pixelHeight, pixelWidth, scale, succeedcreateTexture, height, isLoaded, region, setConfig, texture, textureAsync, tile, tileAsync, updateTexture, widthpublic AndroidImage(Graphics gfx, Scale scale, android.graphics.Bitmap bitmap, String source)
public AndroidImage(AndroidPlatform plat, boolean async, int preWidth, int preHeight, String source)
public android.graphics.Bitmap bitmap()
Bitmap 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 Pattern createPattern(boolean repeatX, boolean repeatY)
createPattern in class Imagepublic void getRgb(int startX,
int startY,
int width,
int height,
int[] rgbArray,
int offset,
int scanSize)
public void setRgb(int startX,
int startY,
int width,
int height,
int[] rgbArray,
int offset,
int scanSize)
public Image transform(Image.BitmapTransformer xform)
public void draw(Object ctx, float x, float y, float w, float h)
public void draw(Object ctx, float dx, float dy, float dw, float dh, float sx, float sy, float sw, float sh)
Copyright © 2015. All Rights Reserved.