Package org.apache.sis.image
Class ImageCombiner.Layout
java.lang.Object
org.apache.sis.internal.coverage.j2d.ImageLayout
org.apache.sis.image.ImageCombiner.Layout
- Enclosing class:
- ImageCombiner
Provides sample model of images created by resample operations.
It must be the sample model of destination image, with the same tile size.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final PointIndices of the first tile (minTileX,minTileY).private final SampleModelSample model of destination image.Fields inherited from class org.apache.sis.internal.coverage.j2d.ImageLayout
DEFAULT, isBoundsAdjustmentAllowed, SIZE_ADJUST -
Constructor Summary
ConstructorsConstructorDescriptionLayout(SampleModel sampleModel) Creates a new layout which will request the specified sample model. -
Method Summary
Modifier and TypeMethodDescriptioncreateCompatibleSampleModel(RenderedImage image, Rectangle bounds) Returns the target sample model forResampledImageor other operations.Returns indices of the first tile, which must have been set in theminTilefield in advance.Methods inherited from class org.apache.sis.internal.coverage.j2d.ImageLayout
createBandedSampleModel, fixedSize, getPreferredTileSize, suggestTileSize, suggestTileSize, toString
-
Field Details
-
sampleModel
Sample model of destination image. -
minTile
Indices of the first tile (minTileX,minTileY).
-
-
Constructor Details
-
Layout
Layout(SampleModel sampleModel) Creates a new layout which will request the specified sample model.
-
-
Method Details
-
createCompatibleSampleModel
Returns the target sample model forResampledImageor other operations.- Overrides:
createCompatibleSampleModelin classImageLayout- Parameters:
image- the image form which to get a sample model.bounds- the bounds of the image to create, ornullif same asimage.- Returns:
- image sample model with preferred tile size.
- See Also:
-
getMinTile
Returns indices of the first tile, which must have been set in theminTilefield in advance.- Overrides:
getMinTilein classImageLayout- Returns:
- indices of the first tile (
minTileX,minTileY), ornullfor (0,0).
-