|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectDimension2D
Dimension
ImageDimension
public class ImageDimension
An image dimension, including the number of bands.
modules/library/coverage (gt-coverage.jar)
Field Summary | |
---|---|
int |
numBands
The number of bands in the image or raster. |
Fields inherited from class Dimension |
---|
height, width |
Constructor Summary | |
---|---|
ImageDimension(Raster raster)
Creates a new dimension initialized to the dimension of the given raster. |
|
ImageDimension(RenderedImage image)
Creates a new dimension initialized to the dimension of the given image. |
Method Summary | |
---|---|
boolean |
equals(Object object)
Checks whether two dimension objects have equal values. |
long |
getMemoryUsage()
Returns the number of bytes required in order to memorize all sample values. |
long |
getNumSampleValues()
Returns the number of sample values. |
int |
hashCode()
Returns the hash code for this dimension. |
String |
toString()
Returns a string representation of this dimension. |
Methods inherited from class Dimension |
---|
getHeight, getSize, getWidth, setSize, setSize, setSize |
Methods inherited from class Dimension2D |
---|
clone, setSize |
Methods inherited from class Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int numBands
Constructor Detail |
---|
public ImageDimension(RenderedImage image)
public ImageDimension(Raster raster)
Method Detail |
---|
public long getNumSampleValues()
width
, height
and numBands
.
public long getMemoryUsage()
public boolean equals(Object object)
equals
in class Dimension
public int hashCode()
hashCode
in class Dimension
public String toString()
toString
in class Dimension
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |