public static class ALcdBasicImage.Configuration extends ALcdImage.Configuration
Width
and Height
:
the image's dimensions in pixel coordinates.Bounds
:
the image's extents in geographic coordinates.Semantics
:
describe the image's pixel interpretation and format.Image Reference
:
the image's reference.column
and row
count,
tile width
and height
:
indicates if and how the image's internal representation is subdivided into tiles.
When reading pixel data out of an image, aligning the reads to the image's tile
grid typically results in improved performance.
Pixel Size (X)
and Pixel Size (Y)
: indicates
the approximate size of the pixel along the related axis, measured in model coordinates.Modifier and Type | Class and Description |
---|---|
static class |
ALcdBasicImage.Configuration.Builder
Builder for ALcdBasicImage.Configuration objects.
|
Modifier and Type | Method and Description |
---|---|
ALcdBasicImage.Configuration.Builder |
asBuilder()
Creates a builder which is pre-initialized with the properties of this
Configuration . |
boolean |
equals(Object o) |
int |
getHeight()
Returns the height of the image in pixels.
|
double |
getPixelSizeX()
Returns the approximate size of a pixel of the image along the x axis,
measured in model coordinates.
|
double |
getPixelSizeY()
Returns the approximate size of a pixel of the image along the y axis,
measured in model coordinates.
|
ELcdImageSamplingMode |
getSamplingMode()
Returns the sampling mode of the image
|
int |
getTileColumnCount()
Returns the width of the tile grid in the image.
|
int |
getTileHeight()
Returns the height of the tiles in the image (in pixels).
|
Rectangle |
getTilePixelBounds(int aTileX,
int aTileY)
Retrieves the bounds in pixel coordinates for a single tile in the image.
|
int |
getTileRowCount()
Returns the height of the tile grid in the image.
|
int |
getTileWidth()
Returns the width of the tiles in the image (in pixels).
|
int |
getWidth()
Returns the width of the image in pixels.
|
int |
hashCode() |
static ALcdBasicImage.Configuration.Builder |
newBuilder()
Creates a new, uninitialized builder.
|
String |
toString() |
getBounds, getImageReference, getSemantics
public int getWidth()
public int getHeight()
public int getTileColumnCount()
public int getTileRowCount()
public int getTileWidth()
getWidth()
and getHeight()
.public int getTileHeight()
getWidth()
and getHeight()
.public double getPixelSizeX()
point-sampled
data this indicates the distance
between 2 samples.public double getPixelSizeY()
point-sampled
data this indicates the distance
between 2 samples.public Rectangle getTilePixelBounds(int aTileX, int aTileY)
aTileX
- the tile x coordinate in [0, columnCount
[aTileY
- the tile y coordinate in [0, rowCount
[IllegalArgumentException
- if the tile coordinate is out of boundspublic ELcdImageSamplingMode getSamplingMode()
public boolean equals(Object o)
equals
in class ALcdImage.Configuration
public int hashCode()
hashCode
in class ALcdImage.Configuration
public static ALcdBasicImage.Configuration.Builder newBuilder()
public ALcdBasicImage.Configuration.Builder asBuilder()
Configuration
. This allows the user to create a copy of a
configuration and selectively modify properties.Configuration