|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use JGImage | |
---|---|
jgame | Contains the platform-independent classes of JGame. |
jgame.impl | Package containing platform independent implementation details. |
jgame.platform | Contains the platform-dependent JGame classes. |
Uses of JGImage in jgame |
---|
Methods in jgame that return JGImage | |
---|---|
JGImage |
JGImage.crop(int x,
int y,
int width,
int height)
|
JGImage |
JGImage.flip(boolean horiz,
boolean vert)
|
JGImage |
JGImage.loadImage(java.lang.String imgfile)
Load image from resource path (using getResource). |
JGImage |
JGImage.rotate(int angle)
for angle, only increments of 90 are allowed |
JGImage |
JGImage.rotateAny(double angle)
Image is rotated by rot (radians). |
JGImage |
JGImage.scale(int width,
int height)
Returns a smoothly scaled image using getScaledInstance. |
JGImage |
JGImage.toDisplayCompatible(int thresh,
JGColor bg_col,
boolean fast,
boolean bitmask)
Turn a (possibly) translucent or indexed image into a display-compatible bitmask image using the given alpha threshold and render-to-background colour, or to display-compatible translucent image. |
Uses of JGImage in jgame.impl |
---|
Fields in jgame.impl declared as JGImage | |
---|---|
JGImage |
EngineLogic.imageutil
|
JGImage |
ImageMap.img
|
Methods in jgame.impl that return JGImage | |
---|---|
JGImage |
JGEngineInterface.getImage(java.lang.String imgname)
Gets (scaled) image directly. |
JGImage |
EngineLogic.getImage(java.lang.String imgname)
Slow version, (re)scales image on demand if original image is present. |
JGImage |
EngineLogic.getImageOrig(java.lang.String imgname)
|
JGImage |
EngineLogic.getImageQuick(java.lang.String imgname)
Quick version does not scale image on demand, and does not give an error when image is not defined. |
JGImage |
EngineLogic.getSubImage(java.lang.String mapname,
int imgnr)
protected |
Methods in jgame.impl with parameters of type JGImage | |
---|---|
void |
EngineLogic.defineImage(java.lang.String name,
java.lang.String tilename,
int collisionid,
JGImage img,
java.lang.String img_op,
int top,
int left,
int width,
int height)
passing -1 to top,left,width,height indicates these have to be taken from the image dimensions. |
Constructors in jgame.impl with parameters of type JGImage | |
---|---|
EngineLogic(JGImage imageutil,
boolean make_bitmask,
boolean prescale)
|
|
ImageMap(JGImage imageutil,
java.lang.String imgfile,
int xofs,
int yofs,
int tilex,
int tiley,
int skipx,
int skipy)
|
Uses of JGImage in jgame.platform |
---|
Methods in jgame.platform that return JGImage | |
---|---|
JGImage |
JGEngine.getImage(java.lang.String imgname)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |