Package org.geotools.processing.jai
Class TransparencyFillOpImage
- Object
-
- PlanarImage
-
- OpImage
-
- AreaOpImage
-
- TransparencyFillOpImage
-
- All Implemented Interfaces:
RenderedImage
,ImageJAI
,PropertyChangeEmitter
,PropertySource
,WritablePropertySource
public class TransparencyFillOpImage extends AreaOpImage
-
-
Constructor Summary
Constructors Constructor Description TransparencyFillOpImage(RenderedImage source, BorderExtender extender, TransparencyFillDescriptor.FillType type, Map config, ImageLayout layout, Number noData, Integer width)
Creates a TransparencyFillOpImage given a ParameterBlock containing the image source.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect)
Performs fill on a specified rectangle.Vector<RenderedImage>
getSources()
-
Methods inherited from class AreaOpImage
computeTile, getBorderExtender, getBottomPadding, getLeftPadding, getRightPadding, getTopPadding, mapDestRect, mapSourceRect
-
Methods inherited from class OpImage
addTileToCache, cancelTiles, computeRect, computesUniqueTiles, createTile, dispose, getExpandedNumBands, getFormatTags, getOperationComputeType, getTile, getTileCache, getTileCacheMetric, getTileDependencies, getTileFromCache, getTileRecycler, getTiles, hasExtender, mapDestPoint, mapSourcePoint, prefetchTiles, queueTiles, recycleTile, setTileCache, vectorize, vectorize, vectorize
-
Methods inherited from class PlanarImage
addPropertyChangeListener, addPropertyChangeListener, addSink, addSink, addSource, addTileComputationListener, copyData, copyData, copyExtendedData, createColorModel, createSnapshot, createWritableRaster, finalize, getAsBufferedImage, getAsBufferedImage, getBounds, getColorModel, getData, getData, getDefaultColorModel, getExtendedData, getGraphics, getHeight, getImageID, getMaxTileX, getMaxTileY, getMaxX, getMaxY, getMinTileX, getMinTileY, getMinX, getMinY, getNumBands, getNumSources, getNumXTiles, getNumYTiles, getProperties, getProperty, getPropertyClass, getPropertyNames, getPropertyNames, getSampleModel, getSinks, getSource, getSourceImage, getSourceObject, getSplits, getTileComputationListeners, getTileFactory, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileIndices, getTileRect, getTiles, getTileWidth, getWidth, overlapsMultipleTiles, removeProperty, removePropertyChangeListener, removePropertyChangeListener, removeSink, removeSink, removeSinks, removeSource, removeSources, removeTileComputationListener, setImageLayout, setProperties, setProperty, setSource, setSources, tileXToX, tileXToX, tileYToY, tileYToY, toString, wrapRenderedImage, XToTileX, XToTileX, YToTileY, YToTileY
-
-
-
-
Constructor Detail
-
TransparencyFillOpImage
public TransparencyFillOpImage(RenderedImage source, BorderExtender extender, TransparencyFillDescriptor.FillType type, Map config, ImageLayout layout, Number noData, Integer width)
Creates a TransparencyFillOpImage given a ParameterBlock containing the image source. The image dimensions are derived from the source image. The tile grid layout, SampleModel, and ColorModel may optionally be specified by an ImageLayout object.- Parameters:
source
- a RenderedImage.extender
- a BorderExtender, or null.type
- aTransparencyFillDescriptor.FillType
type to be used for transparency fillinglayout
- an ImageLayout optionally containing the tile grid layout, SampleModel, and ColorModel, or null.
-
-
Method Detail
-
computeRect
protected void computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect)
Performs fill on a specified rectangle. The sources are cobbled.- Overrides:
computeRect
in classOpImage
- Parameters:
sources
- an array of source Rasters, guaranteed to provide all necessary source data for computing the output.dest
- a WritableRaster tile containing the area to be computed.destRect
- the rectangle within dest to be processed.
-
getSources
public Vector<RenderedImage> getSources()
- Specified by:
getSources
in interfaceRenderedImage
- Overrides:
getSources
in classPlanarImage
-
-