playn.flash
Class FlashCanvasImage
java.lang.Object
playn.flash.FlashCanvasImage
- All Implemented Interfaces:
- CanvasImage, Image
- Direct Known Subclasses:
- FlashSurfaceImageCanvas
public class FlashCanvasImage
- extends Object
- implements CanvasImage
|
Method Summary |
void |
addCallback(Callback<? super Image> callback)
|
Canvas |
canvas()
|
void |
clearTexture()
|
int |
ensureTexture()
|
void |
getRgb(int startX,
int startY,
int width,
int height,
int[] rgbArray,
int offset,
int scanSize)
|
float |
height()
|
boolean |
isReady()
|
boolean |
repeatX()
|
boolean |
repeatY()
|
Scale |
scale()
|
void |
setMipmapped(boolean mipmapped)
|
void |
setRepeat(boolean repeatX,
boolean repeatY)
|
void |
setRgb(int startX,
int startY,
int width,
int height,
int[] rgbArray,
int offset,
int scanSize)
|
Image |
snapshot()
|
Image.Region |
subImage(float x,
float y,
float width,
float height)
|
Pattern |
toPattern()
|
Image |
transform(Image.BitmapTransformer xform)
|
float |
width()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface playn.core.Image |
clearTexture, ensureTexture, getRgb, repeatX, repeatY, scale, setMipmapped, setRepeat, subImage, toPattern, transform |
imageData
protected BitmapData imageData
FlashCanvasImage
public FlashCanvasImage(playn.flash.FlashCanvas canvas)
canvas
public Canvas canvas()
- Specified by:
canvas in interface CanvasImage
snapshot
public Image snapshot()
- Specified by:
snapshot in interface CanvasImage
height
public float height()
- Specified by:
height in interface Image
width
public float width()
- Specified by:
width in interface Image
isReady
public boolean isReady()
- Specified by:
isReady in interface Image
addCallback
public void addCallback(Callback<? super Image> callback)
- Specified by:
addCallback in interface Image
setRgb
public void setRgb(int startX,
int startY,
int width,
int height,
int[] rgbArray,
int offset,
int scanSize)
- Specified by:
setRgb in interface CanvasImage
scale
public Scale scale()
- Specified by:
scale in interface Image
repeatX
public boolean repeatX()
- Specified by:
repeatX in interface Image
repeatY
public boolean repeatY()
- Specified by:
repeatY in interface Image
setRepeat
public void setRepeat(boolean repeatX,
boolean repeatY)
- Specified by:
setRepeat in interface Image
subImage
public Image.Region subImage(float x,
float y,
float width,
float height)
- Specified by:
subImage in interface Image
toPattern
public Pattern toPattern()
- Specified by:
toPattern in interface Image
getRgb
public void getRgb(int startX,
int startY,
int width,
int height,
int[] rgbArray,
int offset,
int scanSize)
- Specified by:
getRgb in interface Image
transform
public Image transform(Image.BitmapTransformer xform)
- Specified by:
transform in interface Image
setMipmapped
public void setMipmapped(boolean mipmapped)
- Specified by:
setMipmapped in interface Image
ensureTexture
public int ensureTexture()
- Specified by:
ensureTexture in interface Image
clearTexture
public void clearTexture()
- Specified by:
clearTexture in interface Image
Copyright © 2013. All Rights Reserved.