public class Overlayer extends Object
Modifier and Type | Field and Description |
---|---|
IOverlay[] |
overlays |
protected ISurface |
surface |
Modifier and Type | Method and Description |
---|---|
boolean |
doDrawImage(Image src,
int clipX,
int clipY,
int clipWidth,
int clipHeight,
int destX,
int destY,
int width,
int height)
Overlay all overlays on top of the data to be drawn to the surface via a drawImage() call.
|
void |
free() |
Image |
getDrawImage()
This is only valid after a call to doDrawImage() and returns the image to be drawn on the surface at
the area returned by getDrawRect().
|
Rect |
getDrawRect()
This is only valid after a call to doDrawImage() and returns the area on the surface that is to be updated
with the full image returned by getImage().
|
public Overlayer(ISurface surface)
public boolean doDrawImage(Image src, int clipX, int clipY, int clipWidth, int clipHeight, int destX, int destY, int width, int height)
src
- The source image.clipX
- The x co-ordinate of the clipping rectangle within the surface.clipY
- The y co-ordinate of the clipping rectangle within the surface.clipWidth
- The width of the clipping rectangle within the surface.clipHeight
- The height of the clipping rectangle within the surface.destX
- The destination x co-ordinate for the image.destY
- The destination y co-ordinate for the image.width
- The number of pixels horizontally to draw from the image.height
- The number of pixels vertically. to draw from the image.ISurface.drawImage(eve.fx.Image, int, int, int, int, int, int, int, int)
public Rect getDrawRect()
public Image getDrawImage()
public void free()