public abstract class JavaImage extends ImageGL<Graphics2D>
Image.BitmapTransformer, Image.Region| Constructor and Description |
|---|
JavaImage(GLContext ctx,
BufferedImage img,
Scale scale) |
| Modifier and Type | Method and Description |
|---|---|
BufferedImage |
bufferedImage()
Returns the
BufferedImage that underlies this image. |
void |
draw(Graphics2D gfx,
float x,
float y,
float w,
float h) |
void |
draw(Graphics2D gfx,
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) |
float |
height() |
boolean |
isReady() |
Pattern |
toPattern() |
Image |
transform(Image.BitmapTransformer xform) |
float |
width() |
clearTexture, ensureTexture, scalereference, release, repeatX, repeatY, setMipmapped, setRepeat, subImageequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCallbackpublic JavaImage(GLContext ctx, BufferedImage img, Scale scale)
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 float width()
public float height()
public boolean isReady()
public Pattern toPattern()
toPattern in interface ImagetoPattern in class AbstractImageGL<Graphics2D>public void getRgb(int startX,
int startY,
int width,
int height,
int[] rgbArray,
int offset,
int scanSize)
getRgb in interface ImagegetRgb in class AbstractImageGL<Graphics2D>public Image transform(Image.BitmapTransformer xform)
transform in interface Imagetransform in class AbstractImageGL<Graphics2D>public void draw(Graphics2D gfx, float x, float y, float w, float h)
draw in class AbstractImageGL<Graphics2D>public void draw(Graphics2D gfx, float dx, float dy, float dw, float dh, float sx, float sy, float sw, float sh)
draw in class AbstractImageGL<Graphics2D>Copyright © 2015. All Rights Reserved.