playn.java
Class JavaStaticImage

java.lang.Object
  extended by playn.java.JavaStaticImage
All Implemented Interfaces:
Image

public class JavaStaticImage
extends Object


Nested Class Summary
 
Nested classes/interfaces inherited from interface playn.core.Image
Image.Region
 
Field Summary
protected  BufferedImage img
           
 
Constructor Summary
JavaStaticImage(BufferedImage img)
           
 
Method Summary
 void addCallback(ResourceCallback<? super Image> callback)
           
 int height()
           
 boolean isReady()
           
 Image.Region subImage(float sx, float sy, float swidth, float sheight)
           
 Pattern toPattern()
           
 int width()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

img

protected BufferedImage img
Constructor Detail

JavaStaticImage

public JavaStaticImage(BufferedImage img)
Method Detail

addCallback

public void addCallback(ResourceCallback<? super Image> callback)

width

public int width()
Specified by:
width in interface Image

height

public int height()
Specified by:
height in interface Image

isReady

public boolean isReady()
Specified by:
isReady in interface Image

subImage

public Image.Region subImage(float sx,
                             float sy,
                             float swidth,
                             float sheight)
Specified by:
subImage in interface Image

toPattern

public Pattern toPattern()
Specified by:
toPattern in interface Image


Copyright © 2012. All Rights Reserved.