|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcrystalspace.jbind.impl.csNativeObject
crystalspace.jbind.impl.csutil.scf.csBase
crystalspace.jbind.impl.graphic.image.csImage
| Field Summary |
| Fields inherited from class crystalspace.jbind.impl.csNativeObject |
ImplFactory, nPointer |
| Constructor Summary | |
csImage(iPointer nPointer)
|
|
| 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 |
getVersion()
Return the version of the interface |
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. |
protected boolean |
isNativePointerValidSafe(long pointer)
|
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 class crystalspace.jbind.impl.csutil.scf.csBase |
decRef, equals, finalize, getRefCount, incRef, nDelete, queryInterface, queryInterfaceSafe |
| Methods inherited from class crystalspace.jbind.impl.csNativeObject |
changePointer, getPointer, getPointer, getPointerArray, hashCode, isMemoryOwner, isNativePointerValid, newNativeObject, setMemoryOwner, toString |
| Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase |
decRef, getRefCount, incRef, queryInterface, queryInterfaceSafe |
| Methods inherited from interface crystalspace.jbind.interfaces.iPointer |
changePointer, getPointer, isMemoryOwner, setMemoryOwner |
| Constructor Detail |
public csImage(iPointer nPointer)
nPointer - | Method Detail |
public int getVersion()
iBase
getVersion in interface iBasegetVersion in class csBaseiBase.getVersion()public java.lang.String getName()
iImage
getName in interface iImagegetName in class csBaseiBase.getName()protected boolean isNativePointerValidSafe(long pointer)
isNativePointerValidSafe in class csNativeObjectcsNativeObject.isNativePointerValidSafe(long)public void checkAlpha()
iImage
checkAlpha in interface iImageiImage.checkAlpha()public iImage Clone()
iImage
Clone in interface iImageiImage.Clone()
public iImage crop(int x,
int y,
int width,
int height)
iImage
crop in interface iImagex - y - width - height -
iImage.crop(int, int, int, int)public byte getAlpha()
iImage
getAlpha in interface iImageiImage.getAlpha()public int getFormat()
iImage
getFormat in interface iImageiImage.getFormat()public int getHeight()
iImage
getHeight in interface iImageiImage.getHeight()public java.lang.Object[] getImageData()
iImage
getImageData in interface iImageiImage.getImageData()public int[] getKeycolor()
iImage
getKeycolor in interface iImageiImage.getKeycolor()public csRGBpixel getPalette()
iImage
getPalette in interface iImageiImage.getPalette()public int getSize()
iImage
getSize in interface iImageiImage.getSize()public int getWidth()
iImage
getWidth in interface iImageiImage.getWidth()public boolean hasKeycolor()
iImage
hasKeycolor in interface iImageiImage.hasKeycolor()public int hasMipmaps()
iImage
hasMipmaps in interface iImageiImage.hasMipmaps()
public iImage mipMap(int step,
csRGBpixel transp)
iImage
mipMap in interface iImagestep - transp -
iImage.mipMap(int, crystalspace.jbind.impl.csgfx.rgbpixel.csRGBpixel)
public void rescale(int NewWidth,
int NewHeight)
iImage
rescale in interface iImageNewWidth - NewHeight - iImage.rescale(int, int)public void setFormat(int iFormat)
iImage
setFormat in interface iImageiFormat - iImage.setFormat(int)public void setName(java.lang.String iName)
iImage
setName in interface iImageiName - iImage.setName(java.lang.String)
public iImage sharpen(csRGBpixel transp,
int strength)
iImage
sharpen in interface iImagetransp - strength -
iImage.sharpen(crystalspace.jbind.impl.csgfx.rgbpixel.csRGBpixel, int)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||