|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.Image
public class Image
| Nested Class Summary | |
|---|---|
static class |
Image.Filter
|
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
Image()
Standard constructor. |
|
Image(IImage img)
Copy-constructor - copies all the data from the target image. |
|
Image(InstancePointer p)
This constructor is public for internal useage only! |
protected |
Image(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
Image(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
static void |
applyGamma(ShortPointer buffer,
float gamma,
int size,
short bpp)
Does gamma adjustment. |
static int |
calculateSize(int mipmaps,
int faces,
int width,
int height,
int depth,
PixelFormat format)
|
void |
delete()
Deletes the corresponding C++ object. |
void |
encode(IDataStreamPtr returnValue,
java.lang.String formatextension)
Encode the image and return a stream to the data. |
void |
finalize()
|
IImage |
flipAroundX()
Flips (mirrors) the image around the X-axis. |
IImage |
flipAroundY()
Flips (mirrors) the image around the Y-axis. |
short |
getBPP()
Returns the number of bits per pixel. |
void |
getColourAt(IColourValue returnValue,
int x,
int y,
int z)
Get colour value from a certain location in the image. |
ShortPointer |
getData_const()
|
ShortPointer |
getData()
Returns a pointer to the internal image buffer. |
int |
getDepth()
Gets the depth of the image. |
static java.lang.String |
getFileExtFromMagic(IDataStreamPtr stream)
|
PixelFormat |
getFormat()
Returns the image format. |
boolean |
getHasAlpha()
Returns true if the image has an alpha component. |
int |
getHeight()
Gets the height of the image in pixels. |
int |
getNumFaces()
Get the number of faces of the image. |
int |
getNumMipmaps()
Returns the number of mipmaps contained in the image. |
void |
getPixelBox(IPixelBox returnValue,
int face,
int mipmap)
Get a encapsulating the image data of a mipmap |
int |
getRowSpan()
Gets the physical width in bytes of each row of pixels. |
int |
getSize()
Returns the size of the data buffer. |
int |
getWidth()
Gets the width of the image in pixels. |
boolean |
hasFlag(ImageFlags imgFlag)
Returns true if the image has the appropriate flag set. |
IImage |
load(IDataStreamPtr stream,
java.lang.String type)
Loads an image file from a stream. |
IImage |
load(java.lang.String strFileName,
java.lang.String groupName)
Loads an image file. |
IImage |
loadDynamicImage(ShortPointer pData,
int uWidth,
int uHeight,
int depth,
PixelFormat eFormat,
boolean autoDelete,
int numFaces,
int numMipMaps)
Stores a pointer to raw data in memory. |
IImage |
loadDynamicImage(ShortPointer pData,
int uWidth,
int uHeight,
PixelFormat eFormat)
Stores a pointer to raw data in memory. |
IImage |
loadRawData(IDataStreamPtr stream,
int uWidth,
int uHeight,
int uDepth,
PixelFormat eFormat,
int numFaces,
int numMipMaps)
Loads raw data from a stream. |
IImage |
loadRawData(IDataStreamPtr stream,
int uWidth,
int uHeight,
PixelFormat eFormat)
Loads raw data from a stream. |
IImage |
operatorAssignment(IImage img)
Assignment operator - copies all the data from the target image. |
void |
resize(int width,
int height,
Image.Filter filter)
Resize a 2D image, applying the appropriate filter. |
void |
save(java.lang.String filename)
Save the image as a file. |
static void |
scale(IPixelBox src,
IPixelBox dst,
Image.Filter filter)
Scale a 1D, 2D or 3D image volume. |
| Methods inherited from class org.xbig.base.NativeObject |
|---|
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Constructor Detail |
|---|
public Image(InstancePointer p)
protected Image(InstancePointer p,
boolean remote)
public Image(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()public Image()
public Image(IImage img)
| Method Detail |
|---|
public void delete()
INativeObjectSubclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!
delete in interface INativeObjectdelete in class NativeObject#remotepublic void finalize()
finalize in class NativeObjectpublic IImage operatorAssignment(IImage img)
operatorAssignment in interface IImagepublic IImage flipAroundY()
flipAroundY in interface IImagepublic IImage flipAroundX()
flipAroundX in interface IImage
public IImage loadDynamicImage(ShortPointer pData,
int uWidth,
int uHeight,
int depth,
PixelFormat eFormat,
boolean autoDelete,
int numFaces,
int numMipMaps)
loadDynamicImage in interface IImage
public IImage loadDynamicImage(ShortPointer pData,
int uWidth,
int uHeight,
PixelFormat eFormat)
loadDynamicImage in interface IImage
public IImage loadRawData(IDataStreamPtr stream,
int uWidth,
int uHeight,
int uDepth,
PixelFormat eFormat,
int numFaces,
int numMipMaps)
loadRawData in interface IImage
public IImage loadRawData(IDataStreamPtr stream,
int uWidth,
int uHeight,
PixelFormat eFormat)
loadRawData in interface IImage
public IImage load(java.lang.String strFileName,
java.lang.String groupName)
load in interface IImage
public IImage load(IDataStreamPtr stream,
java.lang.String type)
load in interface IImagepublic void save(java.lang.String filename)
save in interface IImage
public void encode(IDataStreamPtr returnValue,
java.lang.String formatextension)
encode in interface IImagepublic ShortPointer getData()
getData in interface IImagepublic ShortPointer getData_const()
getData_const in interface IImagepublic int getSize()
getSize in interface IImagepublic int getNumMipmaps()
getNumMipmaps in interface IImagepublic boolean hasFlag(ImageFlags imgFlag)
hasFlag in interface IImagepublic int getWidth()
getWidth in interface IImagepublic int getHeight()
getHeight in interface IImagepublic int getDepth()
getDepth in interface IImagepublic int getNumFaces()
getNumFaces in interface IImagepublic int getRowSpan()
getRowSpan in interface IImagepublic PixelFormat getFormat()
getFormat in interface IImagepublic short getBPP()
getBPP in interface IImagepublic boolean getHasAlpha()
getHasAlpha in interface IImage
public void getColourAt(IColourValue returnValue,
int x,
int y,
int z)
getColourAt in interface IImage
public void getPixelBox(IPixelBox returnValue,
int face,
int mipmap)
getPixelBox in interface IImage
public void resize(int width,
int height,
Image.Filter filter)
resize in interface IImage
public static void applyGamma(ShortPointer buffer,
float gamma,
int size,
short bpp)
public static void scale(IPixelBox src,
IPixelBox dst,
Image.Filter filter)
public static int calculateSize(int mipmaps,
int faces,
int width,
int height,
int depth,
PixelFormat format)
public static java.lang.String getFileExtFromMagic(IDataStreamPtr stream)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||