|
|||||||||||
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 iBase
getVersion
in class csBase
iBase.getVersion()
public java.lang.String getName()
iImage
getName
in interface iImage
getName
in class csBase
iBase.getName()
protected boolean isNativePointerValidSafe(long pointer)
isNativePointerValidSafe
in class csNativeObject
csNativeObject.isNativePointerValidSafe(long)
public void checkAlpha()
iImage
checkAlpha
in interface iImage
iImage.checkAlpha()
public iImage Clone()
iImage
Clone
in interface iImage
iImage.Clone()
public iImage crop(int x, int y, int width, int height)
iImage
crop
in interface iImage
x
- y
- width
- height
-
iImage.crop(int, int, int, int)
public byte getAlpha()
iImage
getAlpha
in interface iImage
iImage.getAlpha()
public int getFormat()
iImage
getFormat
in interface iImage
iImage.getFormat()
public int getHeight()
iImage
getHeight
in interface iImage
iImage.getHeight()
public java.lang.Object[] getImageData()
iImage
getImageData
in interface iImage
iImage.getImageData()
public int[] getKeycolor()
iImage
getKeycolor
in interface iImage
iImage.getKeycolor()
public csRGBpixel getPalette()
iImage
getPalette
in interface iImage
iImage.getPalette()
public int getSize()
iImage
getSize
in interface iImage
iImage.getSize()
public int getWidth()
iImage
getWidth
in interface iImage
iImage.getWidth()
public boolean hasKeycolor()
iImage
hasKeycolor
in interface iImage
iImage.hasKeycolor()
public int hasMipmaps()
iImage
hasMipmaps
in interface iImage
iImage.hasMipmaps()
public iImage mipMap(int step, csRGBpixel transp)
iImage
mipMap
in interface iImage
step
- transp
-
iImage.mipMap(int, crystalspace.jbind.impl.csgfx.rgbpixel.csRGBpixel)
public void rescale(int NewWidth, int NewHeight)
iImage
rescale
in interface iImage
NewWidth
- NewHeight
- iImage.rescale(int, int)
public void setFormat(int iFormat)
iImage
setFormat
in interface iImage
iFormat
- iImage.setFormat(int)
public void setName(java.lang.String iName)
iImage
setName
in interface iImage
iName
- iImage.setName(java.lang.String)
public iImage sharpen(csRGBpixel transp, int strength)
iImage
sharpen
in interface iImage
transp
- 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 |