protected class OMRasterObject.TrimScaleFilter
extends java.awt.image.AreaAveragingScaleFilter
Modifier | Constructor and Description |
---|---|
|
OMRasterObject.TrimScaleFilter(int width,
int height)
Constructs an TrimScaleFilter that scales the pixels from its source
Image as specified by the width and height parameters.
|
protected |
OMRasterObject.TrimScaleFilter(int width,
int height,
int algorithmType)
Constructs an AreaAveragingScaleFilter that scales the pixels from its
source Image as specified by the width and height parameters.
|
Modifier and Type | Method and Description |
---|---|
protected java.awt.image.ImageFilter |
getFilterWithChanges()
The filter must change if the requested image size changes because of
clipping.
|
void |
setHints(int hints)
Detect if the data is being delivered with the necessary hints to allow
the averaging algorithm to do its work.
|
protected java.awt.Image |
trimExcessPixels()
Get a trimmed-down image to expand to the map, that contains all the
pixels that will be visible after expansion.
|
public OMRasterObject.TrimScaleFilter(int width, int height)
width
- the target width to scale the imageheight
- the target height to scale the imageprotected OMRasterObject.TrimScaleFilter(int width, int height, int algorithmType)
width
- the target width to scale the imageheight
- the target height to scale the imagealgorithmType
- FAST_SCALING or SMOOTH_SCALING - FAST is much
faster!public void setHints(int hints)
setHints
in interface java.awt.image.ImageConsumer
setHints
in class java.awt.image.AreaAveragingScaleFilter
ImageConsumer.setHints(int)
protected java.awt.image.ImageFilter getFilterWithChanges()
protected java.awt.Image trimExcessPixels()
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details