public abstract class RoboAbstractImage extends ImageGL<org.robovm.apple.coregraphics.CGBitmapContext> implements Image
RoboImage and RoboCanvasImage.Image.BitmapTransformer, Image.Region| Modifier | Constructor and Description |
|---|---|
protected |
RoboAbstractImage(GLContext ctx,
Scale scale) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCallback(Callback<? super Image> callback) |
abstract org.robovm.apple.coregraphics.CGImage |
cgImage()
Returns the
CGImage that underlies this image. |
void |
draw(org.robovm.apple.coregraphics.CGBitmapContext bctx,
float x,
float y,
float width,
float height) |
void |
draw(org.robovm.apple.coregraphics.CGBitmapContext bctx,
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) |
boolean |
isReady() |
Pattern |
toPattern() |
protected Pattern |
toSubPattern(AbstractImageGL<?> image,
boolean repeatX,
boolean repeatY,
float x,
float y,
float width,
float height) |
org.robovm.apple.uikit.UIImage |
toUIImage()
Creates a
UIImage based on our underlying image data. |
Image |
transform(Image.BitmapTransformer xform) |
clearTexture, convertToRepTex, createMainTex, createPow2RepTex, ensureTexture, finalize, refreshTexture, scale, updateTexturereference, release, repeatX, repeatY, setMipmapped, setRepeat, subImageclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearTexture, ensureTexture, height, repeatX, repeatY, scale, setMipmapped, setRepeat, subImage, widthpublic org.robovm.apple.uikit.UIImage toUIImage()
UIImage based on our underlying image data. This is useful when you need to
pass PlayN images to iOS APIs.public abstract org.robovm.apple.coregraphics.CGImage cgImage()
CGImage 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.public void addCallback(Callback<? super Image> callback)
addCallback in interface Imagepublic Pattern toPattern()
toPattern in interface ImagetoPattern in class AbstractImageGL<org.robovm.apple.coregraphics.CGBitmapContext>public void getRgb(int startX,
int startY,
int width,
int height,
int[] rgbArray,
int offset,
int scanSize)
getRgb in interface ImagegetRgb in class AbstractImageGL<org.robovm.apple.coregraphics.CGBitmapContext>public Image transform(Image.BitmapTransformer xform)
transform in interface Imagetransform in class AbstractImageGL<org.robovm.apple.coregraphics.CGBitmapContext>public void draw(org.robovm.apple.coregraphics.CGBitmapContext bctx,
float x,
float y,
float width,
float height)
draw in class AbstractImageGL<org.robovm.apple.coregraphics.CGBitmapContext>public void draw(org.robovm.apple.coregraphics.CGBitmapContext bctx,
float dx,
float dy,
float dw,
float dh,
float sx,
float sy,
float sw,
float sh)
draw in class AbstractImageGL<org.robovm.apple.coregraphics.CGBitmapContext>protected Pattern toSubPattern(AbstractImageGL<?> image, boolean repeatX, boolean repeatY, float x, float y, float width, float height)
toSubPattern in class AbstractImageGL<org.robovm.apple.coregraphics.CGBitmapContext>Copyright © 2014. All Rights Reserved.