public abstract class JavaImage extends ImageGL<Graphics2D>
Image.BitmapTransformer, Image.Region| Modifier and Type | Field and Description |
|---|---|
protected BufferedImage |
img |
| 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() |
protected Pattern |
toSubPattern(AbstractImageGL<?> image,
boolean repeatX,
boolean repeatY,
float x,
float y,
float width,
float height) |
Image |
transform(Image.BitmapTransformer xform) |
protected void |
updateTexture(int tex) |
float |
width() |
clearTexture, convertToRepTex, createMainTex, createPow2RepTex, ensureTexture, finalize, scalereference, release, repeatX, repeatY, setMipmapped, setRepeat, subImageclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCallbackprotected BufferedImage img
public 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>protected Pattern toSubPattern(AbstractImageGL<?> image, boolean repeatX, boolean repeatY, float x, float y, float width, float height)
toSubPattern in class AbstractImageGL<Graphics2D>protected void updateTexture(int tex)
updateTexture in class ImageGL<Graphics2D>Copyright © 2013. All Rights Reserved.