|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The iImage interface is used to work with image files (what did you expect?). Crystal Space supports loading of images in GIF, JPEG, PNG, SGI etc formats, you can work with any image through this interface.
Method Summary | |
void |
checkAlpha()
Check if all alpha values are "non-transparent" and if so, discard alpha. |
iImage |
Clone()
Create yet another image and copy this one into the new image. |
iImage |
crop(int x,
int y,
int width,
int height)
Create a new image and copy a subpart of the actual image into the new image. |
byte |
getAlpha()
Get alpha map for 8-bit paletted image. |
int |
getFormat()
Qyery image format (see CS_IMGFMT_XXX above);. |
int |
getHeight()
Query image height. |
java.lang.Object[] |
getImageData()
Get image data: returns either (csRGBpixel []); or (Byte []); depending on format. |
int[] |
getKeycolor()
Get the keycolour stored with the image. |
java.lang.String |
getName()
Get image file name. |
csRGBpixel |
getPalette()
Get image palette (or 0 if no palette);. |
int |
getSize()
Query image size in bytes. |
int |
getWidth()
Query image width. |
boolean |
hasKeycolor()
check if image has a keycolour stored with it Implemented in csImageFile. |
int |
hasMipmaps()
Returns the number of mipmaps contained in the image (in case there exist any precalculated mipmaps. |
iImage |
mipMap(int step,
csRGBpixel transp)
Create a new iImage which is a mipmapped version of this one. |
void |
rescale(int NewWidth,
int NewHeight)
Rescale the image to the given size. |
void |
setFormat(int iFormat)
Convert the image to another format. |
void |
setName(java.lang.String iName)
Set image file name. |
iImage |
sharpen(csRGBpixel transp,
int strength)
Create a sharpened copy of the image. |
Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase |
decRef, getRefCount, getVersion, incRef, queryInterface, queryInterfaceSafe |
Methods inherited from interface crystalspace.jbind.interfaces.iPointer |
changePointer, getPointer, isMemoryOwner, setMemoryOwner |
Method Detail |
public void checkAlpha()
public iImage Clone()
public iImage crop(int x, int y, int width, int height)
x
- y
- width
- height
-
public byte getAlpha()
public int getFormat()
public int getHeight()
public java.lang.Object[] getImageData()
public int[] getKeycolor()
public java.lang.String getName()
getName
in interface iBase
iBase.getName()
public csRGBpixel getPalette()
public int getSize()
public int getWidth()
public boolean hasKeycolor()
public int hasMipmaps()
public iImage mipMap(int step, csRGBpixel transp)
step
- transp
-
public void rescale(int NewWidth, int NewHeight)
NewWidth
- NewHeight
- public void setFormat(int iFormat)
iFormat
- public void setName(java.lang.String iName)
iName
- public iImage sharpen(csRGBpixel transp, int strength)
transp
- strength
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |