Package playn.robovm
Class RoboImage
java.lang.Object
playn.core.TileSource
playn.core.Image
playn.core.ImageImpl
playn.robovm.RoboImage
- All Implemented Interfaces:
AutoCloseable,Canvas.Drawable,Closeable
- Direct Known Subclasses:
RoboCanvasImage
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.robovm.apple.coregraphics.CGImagecgImage()Returns theCGImagethat underlies this image.createPattern(boolean repeatX, boolean repeatY) voiddispose()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()org.robovm.apple.uikit.UIImageCreates aUIImagebased on our underlying image data.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
-
RoboImage
-
RoboImage
-
-
Method Details
-
cgImage
public org.robovm.apple.coregraphics.CGImage cgImage()Returns theCGImagethat underlies this image. This is public so that games that need to write custom backend code to do special stuff can access it. No promises are made, caveat coder. Note: it's not initialized immediately for async loaded images. -
toUIImage
public org.robovm.apple.uikit.UIImage toUIImage()Creates aUIImagebased on our underlying image data. This is useful when you need to pass PlayN images to iOS APIs. -
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
-
dispose
public void dispose()
-