|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.rico.engine.effect.ortho.OverlayImage
public class OverlayImage
This class encapsulates an image file to be ready for
rendering with the ImageRenderer.
Note: You can even use images
with transparency (like .png files) and the transparent areas will
stay transparent.
Constructor Summary | |
---|---|
OverlayImage(java.lang.String filePath)
Creates a new overlay image from the specified image. |
|
OverlayImage(java.lang.String filePath,
int width,
int height)
Creates a new overlay image from the specified image. |
Method Summary | |
---|---|
java.lang.String |
getFilePath()
Returns the file path of the image. |
int |
getHeight()
Returns the height of the overlay image in pixels. |
com.sun.opengl.util.texture.Texture |
getImage()
Returns the image (which is actually a texture object). |
int |
getWidth()
Returns the width of the overlay image in pixels. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OverlayImage(java.lang.String filePath)
filePath
- file path to imagepublic OverlayImage(java.lang.String filePath, int width, int height)
filePath
- file path to imagewidth
- width for the imageheight
- height for the imageMethod Detail |
---|
public com.sun.opengl.util.texture.Texture getImage()
public int getWidth()
public int getHeight()
public java.lang.String getFilePath()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |