public class RoboImage extends ImageImpl
ImageImpl.DataImage.BitmapTransformer, Image.RegionCloseable.Set, Closeable.Util| Constructor and Description |
|---|
RoboImage(Graphics gfx,
Scale scale,
org.robovm.apple.coregraphics.CGImage img,
java.lang.String source) |
RoboImage(RoboPlatform plat,
boolean async,
int preWidth,
int preHeight,
java.lang.String source) |
| Modifier and Type | Method and Description |
|---|---|
org.robovm.apple.coregraphics.CGImage |
cgImage()
Returns the
CGImage that underlies this image. |
Pattern |
createPattern(boolean repeatX,
boolean repeatY) |
void |
dispose() |
void |
draw(java.lang.Object ctx,
float x,
float y,
float width,
float height) |
void |
draw(java.lang.Object ctx,
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) |
void |
setRgb(int startX,
int startY,
int width,
int height,
int[] rgbArray,
int offset,
int scanSize) |
java.lang.String |
toString() |
org.robovm.apple.uikit.UIImage |
toUIImage()
Creates a
UIImage based on our underlying image data. |
Image |
transform(Image.BitmapTransformer xform) |
fail, pixelHeight, pixelWidth, scale, succeedclose, createTexture, height, isLoaded, region, setConfig, texture, textureAsync, tile, tileAsync, updateTexture, widthpublic RoboImage(Graphics gfx, Scale scale, org.robovm.apple.coregraphics.CGImage img, java.lang.String source)
public RoboImage(RoboPlatform plat, boolean async, int preWidth, int preHeight, java.lang.String source)
public 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. Note: it's not initialized immediately for async loaded images.public 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 Pattern createPattern(boolean repeatX, boolean repeatY)
createPattern in class Imagepublic void getRgb(int startX,
int startY,
int width,
int height,
int[] rgbArray,
int offset,
int scanSize)
public void setRgb(int startX,
int startY,
int width,
int height,
int[] rgbArray,
int offset,
int scanSize)
public Image transform(Image.BitmapTransformer xform)
public void draw(java.lang.Object ctx,
float x,
float y,
float width,
float height)
public void draw(java.lang.Object ctx,
float dx,
float dy,
float dw,
float dh,
float sx,
float sy,
float sw,
float sh)
public java.lang.String toString()
toString in class java.lang.Objectpublic void dispose()
Copyright © 2019. All Rights Reserved.