org.ogre4j
Interface IImage

All Superinterfaces:
IAllocatedObject<IGeneralAllocPolicy>, IGeneralAllocatedObject, INativeObject
All Known Implementing Classes:
Image

public interface IImage
extends INativeObject, IGeneralAllocatedObject


Method Summary
 void encode(IDataStreamPtr returnValue, java.lang.String formatextension)
          Encode the image and return a stream to the data.
 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.
 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.
 
Methods inherited from interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

operatorAssignment

IImage operatorAssignment(IImage img)
Assignment operator - copies all the data from the target image.


flipAroundY

IImage flipAroundY()
Flips (mirrors) the image around the Y-axis.


flipAroundX

IImage flipAroundX()
Flips (mirrors) the image around the X-axis.


loadDynamicImage

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. The pixel format has to be specified.


loadDynamicImage

IImage loadDynamicImage(ShortPointer pData,
                        int uWidth,
                        int uHeight,
                        PixelFormat eFormat)
Stores a pointer to raw data in memory. The pixel format has to be specified.


loadRawData

IImage loadRawData(IDataStreamPtr stream,
                   int uWidth,
                   int uHeight,
                   int uDepth,
                   PixelFormat eFormat,
                   int numFaces,
                   int numMipMaps)
Loads raw data from a stream. See the function loadDynamicImage for a description of the parameters.


loadRawData

IImage loadRawData(IDataStreamPtr stream,
                   int uWidth,
                   int uHeight,
                   PixelFormat eFormat)
Loads raw data from a stream. The pixel format has to be specified.


load

IImage load(java.lang.String strFileName,
            java.lang.String groupName)
Loads an image file.


load

IImage load(IDataStreamPtr stream,
            java.lang.String type)
Loads an image file from a stream.


save

void save(java.lang.String filename)
Save the image as a file.


encode

void encode(IDataStreamPtr returnValue,
            java.lang.String formatextension)
Encode the image and return a stream to the data.


getData

ShortPointer getData()
Returns a pointer to the internal image buffer.


getData_const

ShortPointer getData_const()

getSize

int getSize()
Returns the size of the data buffer.


getNumMipmaps

int getNumMipmaps()
Returns the number of mipmaps contained in the image.


hasFlag

boolean hasFlag(ImageFlags imgFlag)
Returns true if the image has the appropriate flag set.


getWidth

int getWidth()
Gets the width of the image in pixels.


getHeight

int getHeight()
Gets the height of the image in pixels.


getDepth

int getDepth()
Gets the depth of the image.


getNumFaces

int getNumFaces()
Get the number of faces of the image. This is usually 6 for a cubemap, and 1 for a normal image.


getRowSpan

int getRowSpan()
Gets the physical width in bytes of each row of pixels.


getFormat

PixelFormat getFormat()
Returns the image format.


getBPP

short getBPP()
Returns the number of bits per pixel.


getHasAlpha

boolean getHasAlpha()
Returns true if the image has an alpha component.


getColourAt

void getColourAt(IColourValue returnValue,
                 int x,
                 int y,
                 int z)
Get colour value from a certain location in the image. The z coordinate is only valid for cubemaps and volume textures. This uses the first (largest) mipmap.


getPixelBox

void getPixelBox(IPixelBox returnValue,
                 int face,
                 int mipmap)
Get a encapsulating the image data of a mipmap


resize

void resize(int width,
            int height,
            Image.Filter filter)
Resize a 2D image, applying the appropriate filter.



Copyright © 2007 netAllied GmbH. All Rights Reserved.