playn.flash
Class FlashSurfaceImageCanvas

java.lang.Object
  extended by playn.flash.FlashCanvasImage
      extended by playn.flash.FlashSurfaceImageCanvas
All Implemented Interfaces:
CanvasImage, Image, SurfaceImage

public class FlashSurfaceImageCanvas
extends FlashCanvasImage
implements SurfaceImage


Nested Class Summary
 
Nested classes/interfaces inherited from interface playn.core.Image
Image.BitmapTransformer, Image.Region
 
Field Summary
protected  BitmapData imageData
           
 
Constructor Summary
FlashSurfaceImageCanvas(playn.flash.FlashCanvas canvas)
           
 
Method Summary
 void clearTexture()
           
 void destroy()
           
 int ensureTexture()
           
 void getRgb(int startX, int startY, int width, int height, int[] rgbArray, int offset, int scanSize)
           
 boolean repeatX()
           
 boolean repeatY()
           
 Scale scale()
           
 void setMipmapped(boolean mipmapped)
           
 void setRepeat(boolean repeatX, boolean repeatY)
           
 Image.Region subImage(float x, float y, float width, float height)
           
 Surface surface()
           
 Pattern toPattern()
           
 Image transform(Image.BitmapTransformer xform)
           
 
Methods inherited from class playn.flash.FlashCanvasImage
addCallback, canvas, height, isReady, setRgb, snapshot, 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
addCallback, clearTexture, ensureTexture, getRgb, height, isReady, repeatX, repeatY, scale, setMipmapped, setRepeat, subImage, toPattern, transform, width
 

Field Detail

imageData

protected BitmapData imageData
Constructor Detail

FlashSurfaceImageCanvas

public FlashSurfaceImageCanvas(playn.flash.FlashCanvas canvas)
Method Detail

surface

public Surface surface()
Specified by:
surface in interface SurfaceImage

destroy

public void destroy()
Specified by:
destroy in interface SurfaceImage

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.