playn.java
Class JavaImageRegion

java.lang.Object
  extended by playn.core.AbstractImage
      extended by playn.core.gl.ImageGL
          extended by playn.core.gl.ImageRegionGL
              extended by playn.java.JavaImageRegion
All Implemented Interfaces:
Image, Image.Region

public class JavaImageRegion
extends ImageRegionGL


Nested Class Summary
 
Nested classes/interfaces inherited from interface playn.core.Image
Image.BitmapTransformer, Image.Region
 
Field Summary
 
Fields inherited from class playn.core.gl.ImageRegionGL
height, parent, width, x, y
 
Fields inherited from class playn.core.gl.ImageGL
ctx, refs, reptex, scale, tex
 
Method Summary
 void draw(Graphics2D gfx, float x, float y, float w, float h)
           
 void draw(Graphics2D gfx, float dx, float dy, float dw, float dh, float x, float y, float w, float h)
           
 void getRgb(int startX, int startY, int width, int height, int[] rgbArray, int offset, int scanSize)
           
 Pattern toPattern()
           
 
Methods inherited from class playn.core.gl.ImageRegionGL
addCallback, clearTexture, ensureTexture, height, isReady, parent, reference, release, setBounds, subImage, texHeight, texWidth, transform, updateTexture, width, x, y
 
Methods inherited from class playn.core.gl.ImageGL
finalize
 
Methods inherited from class playn.core.AbstractImage
glTexImage2D, glTexSubImage2D
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface playn.core.Image
glTexImage2D, glTexSubImage2D
 

Method Detail

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

draw

public void draw(Graphics2D gfx,
                 float x,
                 float y,
                 float w,
                 float h)

draw

public void draw(Graphics2D gfx,
                 float dx,
                 float dy,
                 float dw,
                 float dh,
                 float x,
                 float y,
                 float w,
                 float h)


Copyright © 2012. All Rights Reserved.