public class RoboCanvasImage extends RoboAbstractImage implements CanvasImage
Canvas rendering into an image.Image.BitmapTransformer, Image.Region| Constructor and Description |
|---|
RoboCanvasImage(RoboGLContext ctx,
float width,
float height,
boolean interpolate) |
| Modifier and Type | Method and Description |
|---|---|
Canvas |
canvas() |
org.robovm.apple.coregraphics.CGImage |
cgImage()
Returns the
CGImage that underlies this image. |
int |
ensureTexture() |
float |
height() |
void |
setRgb(int startX,
int startY,
int width,
int height,
int[] rgbArray,
int offset,
int scanSize) |
Image |
snapshot() |
float |
width() |
addCallback, draw, draw, getRgb, isReady, toPattern, toUIImage, transformclearTexture, scalereference, release, repeatX, repeatY, setMipmapped, setRepeat, subImageequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCallback, clearTexture, getRgb, isReady, repeatX, repeatY, scale, setMipmapped, setRepeat, subImage, toPattern, transformpublic RoboCanvasImage(RoboGLContext ctx, float width, float height, boolean interpolate)
public Canvas canvas()
canvas in interface CanvasImagepublic Image snapshot()
snapshot in interface CanvasImagepublic org.robovm.apple.coregraphics.CGImage cgImage()
RoboAbstractImageCGImage that 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.cgImage in class RoboAbstractImagepublic int ensureTexture()
ensureTexture in interface ImageensureTexture in class ImageGL<org.robovm.apple.coregraphics.CGBitmapContext>public void setRgb(int startX,
int startY,
int width,
int height,
int[] rgbArray,
int offset,
int scanSize)
setRgb in interface CanvasImageCopyright © 2015. All Rights Reserved.