jjil.core
Class Gray16Image

java.lang.Object
  extended by jjil.core.Image
      extended by jjil.core.Gray16Image

public final class Gray16Image
extends Image

Gray16Image is the image type used to store a 16-bit signed gray image.

Author:
webb

Constructor Summary
Gray16Image(int cWidth, int cHeight)
          Creates a new instance of Gray16Image
Gray16Image(int cWidth, int cHeight, short wValue)
          Creates a new instance of Gray16Image, assigning a constant value.
 
Method Summary
 Image clone()
          Copy this image
 short[] getData()
          Return a pointer to the image data.
 java.lang.String toString()
          Return a string describing the image.
 
Methods inherited from class jjil.core.Image
getHeight, getWidth
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Gray16Image

public Gray16Image(int cWidth,
                   int cHeight)
Creates a new instance of Gray16Image

Parameters:
cWidth - the image width
cHeight - the image height

Gray16Image

public Gray16Image(int cWidth,
                   int cHeight,
                   short wValue)
Creates a new instance of Gray16Image, assigning a constant value.

Parameters:
cWidth - Width of the image (columns).
cHeight - Height of the image (rows)
wValue - constant value to be assigned to the image
Method Detail

clone

public Image clone()
Copy this image

Specified by:
clone in class Image
Returns:
the image copy.

getData

public short[] getData()
Return a pointer to the image data.

Returns:
the data pointer.

toString

public java.lang.String toString()
Return a string describing the image.

Overrides:
toString in class java.lang.Object
Returns:
the string.