| |
|
| java.awt.Dimension org.geotools.image.ImageDimension
ImageDimension | public class ImageDimension extends Dimension (Code) | | An image dimension, including the number of bands.
since: 2.4 version: $Id: ImageDimension.java 26761 2007-08-29 21:25:45Z desruisseaux $ author: Martin Desruisseaux |
Field Summary | |
public int | numBands The number of bands in the image or raster. |
Constructor Summary | |
public | ImageDimension(RenderedImage image) Creates a new dimension initialized to the dimension of the given image. | public | ImageDimension(Raster raster) Creates a new dimension initialized to the dimension of the given raster. |
Method Summary | |
public boolean | equals(Object object) Checks whether two dimension objects have equal values. | public long | getMemoryUsage() Returns the number of bytes required in order to memorize
. | public long | getNumSampleValues() Returns the number of sample values. | public int | hashCode() Returns the hash code for this dimension. | public String | toString() Returns a string representation of this dimension. |
numBands | public int numBands(Code) | | The number of bands in the image or raster.
|
ImageDimension | public ImageDimension(RenderedImage image)(Code) | | Creates a new dimension initialized to the dimension of the given image.
|
ImageDimension | public ImageDimension(Raster raster)(Code) | | Creates a new dimension initialized to the dimension of the given raster.
|
equals | public boolean equals(Object object)(Code) | | Checks whether two dimension objects have equal values.
|
getMemoryUsage | public long getMemoryUsage()(Code) | | Returns the number of bytes required in order to memorize
. The sample values size is determined by the image or raster given at
construction time.
|
hashCode | public int hashCode()(Code) | | Returns the hash code for this dimension.
|
toString | public String toString()(Code) | | Returns a string representation of this dimension.
|
|
|
|