jjil.core
Class Gray32Image

java.lang.Object
  extended by jjil.core.Image
      extended by jjil.core.Gray32Image
Direct Known Subclasses:
Gray32MaskedImage, Gray32SubImage

public class Gray32Image
extends Image

Gray32Image is the image type used to store a 32-bit integer image.

Author:
webb

Constructor Summary
Gray32Image(int cWidth, int cHeight)
          Creates a new instance of Gray32Image
Gray32Image(int cWidth, int cHeight, int nValue)
          Creates a new instance of Gray32Image, assigning a constant value.
 
Method Summary
 Image clone()
          Copy this image
 int[] 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

Gray32Image

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

Parameters:
cWidth - Width of the image (columns).
cHeight - Height of the image (rows)

Gray32Image

public Gray32Image(int cWidth,
                   int cHeight,
                   int nValue)
Creates a new instance of Gray32Image, assigning a constant value.

Parameters:
cWidth - Width of the image (columns).
cHeight - Height of the image (rows)
nValue - 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 int[] 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.