public class JavaImage extends ImageImpl
ImageImpl.DataImage.BitmapTransformer, Image.Region| Constructor and Description |
|---|
JavaImage(Graphics gfx,
Scale scale,
BufferedImage img) |
JavaImage(JavaPlatform plat,
boolean async,
int preWidth,
int preHeight) |
| Modifier and Type | Method and Description |
|---|---|
BufferedImage |
bufferedImage()
Returns the
BufferedImage 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 JavaImage(Graphics gfx, Scale scale, BufferedImage img)
public JavaImage(JavaPlatform plat, boolean async, int preWidth, int preHeight)
public BufferedImage bufferedImage()
BufferedImage 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.