public interface MultiLevelSource
MultiLevelSource
is given by a MultiLevelModel
which also provides the number of available resolution
levels.Modifier and Type | Field and Description |
---|---|
static MultiLevelSource |
NULL |
Modifier and Type | Method and Description |
---|---|
RenderedImage |
getImage(int level)
Gets the scaled image for the given resolution level.
|
Shape |
getImageShape(int level)
Gets the shape of the area where this image's raster data contains valid pixels at the given resolution level.
|
MultiLevelModel |
getModel()
Gets the layout model for the multi-resolution image supported by this
LevelImageSource . |
void |
reset()
Provides a hint that the level images provided so far will no longer be accessed from a
reference in user space.
|
static final MultiLevelSource NULL
MultiLevelModel getModel()
LevelImageSource
.RenderedImage getImage(int level)
level
is
scale
times smaller than the dimensions of the
image at level=0
.level
- The resolution level.MultiLevelModel.getLevelCount()
-1.Shape getImageShape(int level)
null
, if the entire image raster contains valid pixels.level
- The resolution level.null
.void reset()
Provides a hint that the level images provided so far will no longer be accessed from a reference in user space.
Therefore implementations of this method might also dispose any cached level images that have been provided so far.
After calling this method, a call to getImage(int)
} for the same level may
return a new level image instance.
This method is particularly useful if properties have changed that affect the appearance of the returned images at all levels, e.g. after a new color palette has been assigned or the contrast range has changed.
Copyright © 2014–2016 European Space Agency (ESA). All rights reserved.