Package playn.java
Class JavaImage
java.lang.Object
playn.core.TileSource
playn.core.Image
playn.core.ImageImpl
playn.java.JavaImage
- All Implemented Interfaces:
AutoCloseable,Canvas.Drawable,Closeable
-
Nested Class Summary
Nested classes/interfaces inherited from class playn.core.ImageImpl
ImageImpl.DataNested classes/interfaces inherited from class playn.core.Image
Image.BitmapTransformer, Image.RegionNested classes/interfaces inherited from interface react.Closeable
Closeable.Set, Closeable.Util -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionJavaImage(Graphics gfx, Scale scale, BufferedImage img, String source) JavaImage(JavaPlatform plat, boolean async, int preWidth, int preHeight, String source) -
Method Summary
Modifier and TypeMethodDescriptionReturns theBufferedImagethat underlies this image.createPattern(boolean repeatX, boolean repeatY) voidvoidvoidgetRgb(int startX, int startY, int width, int height, int[] rgbArray, int offset, int scanSize) voidsetRgb(int startX, int startY, int width, int height, int[] rgbArray, int offset, int scanSize) toString()transform(Image.BitmapTransformer xform) Methods inherited from class playn.core.ImageImpl
fail, pixelHeight, pixelWidth, scale, succeedMethods inherited from class playn.core.Image
close, createTexture, height, isLoaded, region, setConfig, texture, textureAsync, tile, tileAsync, updateTexture, width
-
Constructor Details
-
JavaImage
-
JavaImage
-
-
Method Details
-
bufferedImage
Returns theBufferedImagethat underlies this image. This is for games that need to write custom backend code to do special stuff. No promises are made, caveat coder. -
createPattern
- Specified by:
createPatternin classImage
-
getRgb
public void getRgb(int startX, int startY, int width, int height, int[] rgbArray, int offset, int scanSize) -
setRgb
public void setRgb(int startX, int startY, int width, int height, int[] rgbArray, int offset, int scanSize) -
transform
-
draw
-
draw
public void draw(Object ctx, float dx, float dy, float dw, float dh, float sx, float sy, float sw, float sh) -
toString
-