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 Point
Indices of the first tile (minTileX
,minTileY
).private final SampleModel
Sample 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 forResampledImage
or other operations.Returns indices of the first tile, which must have been set in theminTile
field 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 forResampledImage
or other operations.- Overrides:
createCompatibleSampleModel
in classImageLayout
- Parameters:
image
- the image form which to get a sample model.bounds
- the bounds of the image to create, ornull
if 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 theminTile
field in advance.- Overrides:
getMinTile
in classImageLayout
- Returns:
- indices of the first tile (
minTileX
,minTileY
), ornull
for (0,0).
-