com.metaio.sdk.jni
Class ImageStruct

java.lang.Object
  extended by com.metaio.sdk.jni.ImageStruct

public class ImageStruct
extends Object

Structure that defines a image.


Constructor Summary
ImageStruct()
           
ImageStruct(byte[] _buffer, int _width, int _height, ECOLOR_FORMAT _colorFormat, boolean _originIsUpperLeft)
           
ImageStruct(byte[] _buffer, int _width, int _height, ECOLOR_FORMAT _colorFormat, boolean _originIsUpperLeft, double _timestamp)
           
ImageStruct(ImageStruct other)
           
ImageStruct(long cPtr, boolean cMemoryOwn)
           
 
Method Summary
 void delete()
           
 void deleteBuffer()
           
 byte[] getBuffer()
           
 ECOLOR_FORMAT getColorFormat()
          color format
static long getCPtr(ImageStruct obj)
           
 int getHeight()
          height component of the vector
 boolean getOriginIsUpperLeft()
          true if the orgigin is in the upper left corner; false, if lower left
 double getTimestamp()
          timestamp when the image was created
 int getWidth()
          width component of the vector
 void setColorFormat(ECOLOR_FORMAT value)
          color format
 void setHeight(int value)
          height component of the vector
 void setOriginIsUpperLeft(boolean value)
          true if the orgigin is in the upper left corner; false, if lower left
 void setTimestamp(double value)
          timestamp when the image was created
 void setWidth(int value)
          width component of the vector
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImageStruct

public ImageStruct(long cPtr,
                   boolean cMemoryOwn)

ImageStruct

public ImageStruct()

ImageStruct

public ImageStruct(byte[] _buffer,
                   int _width,
                   int _height,
                   ECOLOR_FORMAT _colorFormat,
                   boolean _originIsUpperLeft,
                   double _timestamp)
Parameters:
_buffer - pointer to the image data
_width - width of the image
_height - height of the image
_colorFormat - the color format
_originIsUpperLeft - true if the origin is upper left corner, false if lower left
_timestamp - timestamp when the image was created

ImageStruct

public ImageStruct(byte[] _buffer,
                   int _width,
                   int _height,
                   ECOLOR_FORMAT _colorFormat,
                   boolean _originIsUpperLeft)

ImageStruct

public ImageStruct(ImageStruct other)
Method Detail

getCPtr

public static long getCPtr(ImageStruct obj)

delete

public void delete()

setWidth

public void setWidth(int value)
width component of the vector


getWidth

public int getWidth()
width component of the vector


setHeight

public void setHeight(int value)
height component of the vector


getHeight

public int getHeight()
height component of the vector


setColorFormat

public void setColorFormat(ECOLOR_FORMAT value)
color format


getColorFormat

public ECOLOR_FORMAT getColorFormat()
color format


setOriginIsUpperLeft

public void setOriginIsUpperLeft(boolean value)
true if the orgigin is in the upper left corner; false, if lower left


getOriginIsUpperLeft

public boolean getOriginIsUpperLeft()
true if the orgigin is in the upper left corner; false, if lower left


setTimestamp

public void setTimestamp(double value)
timestamp when the image was created


getTimestamp

public double getTimestamp()
timestamp when the image was created


getBuffer

public byte[] getBuffer()

deleteBuffer

public void deleteBuffer()

toString

public String toString()
Overrides:
toString in class Object