|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.rico.engine.effect.ortho.AbstractOrthoOverlay
de.rico.engine.effect.ortho.ImageRenderer
public class ImageRenderer
This class can be used to draw an image as a 2D overlay onto the screen.
Constructor Summary | |
---|---|
ImageRenderer()
Creates a new image renderer object. |
|
ImageRenderer(Color4f color)
Creates a new image renderer object with the specified default color. |
Method Summary | |
---|---|
void |
drawImage(int x,
int y,
int width,
int height,
OverlayImage img)
Draws an overlay image at the specified position. |
void |
drawImage(int x,
int y,
int width,
int height,
OverlayImage img,
boolean maskBlack)
Draws an overlay image at the specified position. |
void |
drawImage(int x,
int y,
int width,
int height,
OverlayImage img,
Color4f c)
Draws an overlay image at the specified position. |
void |
drawImage(int x,
int y,
int width,
int height,
OverlayImage img,
Color4f c,
boolean maskBlack)
Draws an overlay image at the specified position. |
void |
drawImage(int x,
int y,
OverlayImage img)
Draws an overlay image at the specified position. |
void |
drawImage(int x,
int y,
OverlayImage img,
boolean maskBlack)
Draws an overlay image at the specified position. |
void |
drawImage(int x,
int y,
OverlayImage img,
Color4f c)
Draws an overlay image at the specified position. |
void |
drawImage(int x,
int y,
OverlayImage img,
Color4f c,
boolean maskBlack)
Draws an overlay image at the specified position. |
boolean |
isMaskedBlackColor()
Determines whether or not black parts of rendered overlay images are masked by default. |
void |
setMaskedBlackColor(boolean maskBlack)
Enables or disables masking of black colored parts of the overlay image by default. |
Methods inherited from class de.rico.engine.effect.ortho.AbstractOrthoOverlay |
---|
getColor, setColor |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageRenderer()
public ImageRenderer(Color4f color)
color
- default color to use for the imagesMethod Detail |
---|
public void setMaskedBlackColor(boolean maskBlack)
maskBlack
- mask black color? --> true=yes, false=nopublic boolean isMaskedBlackColor()
public void drawImage(int x, int y, OverlayImage img)
x
- x-coordinate for the overlay imagey
- y-coordinate for the overlay imageimg
- overlay image to displaypublic void drawImage(int x, int y, int width, int height, OverlayImage img)
x
- x-coordinate for the overlay imagey
- y-coordinate for the overlay imagewidth
- width to draw the image withheight
- height to draw the image withimg
- overlay image to displaypublic void drawImage(int x, int y, OverlayImage img, Color4f c)
x
- x-coordinate for the overlay imagey
- y-coordinate for the overlay imageimg
- overlay image to displayc
- RGBA color to use for the overlay imagepublic void drawImage(int x, int y, OverlayImage img, boolean maskBlack)
x
- x-coordinate for the overlay imagey
- y-coordinate for the overlay imageimg
- overlay image to displaymaskBlack
- mask black color? --> true=yes, false=nopublic void drawImage(int x, int y, OverlayImage img, Color4f c, boolean maskBlack)
x
- x-coordinate for the overlay imagey
- y-coordinate for the overlay imageimg
- overlay image to displayc
- RGBA color to use for the overlay imagemaskBlack
- mask black color? --> true=yes, false=nopublic void drawImage(int x, int y, int width, int height, OverlayImage img, Color4f c)
x
- x-coordinate for the overlay imagey
- y-coordinate for the overlay imageimg
- overlay image to displayc
- RGBA color to use for the overlay imagepublic void drawImage(int x, int y, int width, int height, OverlayImage img, boolean maskBlack)
x
- x-coordinate for the overlay imagey
- y-coordinate for the overlay imagewidth
- width to draw the image withheight
- height to draw the image withimg
- overlay image to displaymaskBlack
- mask black color? --> true=yes, false=nopublic void drawImage(int x, int y, int width, int height, OverlayImage img, Color4f c, boolean maskBlack)
x
- x-coordinate for the overlay imagey
- y-coordinate for the overlay imagewidth
- width to draw the image withheight
- height to draw the image withimg
- overlay image to displayc
- RGBA color to use for the overlay imagemaskBlack
- mask black color? --> true=yes, false=no
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |