Class FormatRed
java.lang.Object
org.apache.batik.ext.awt.image.rendered.AbstractRed
org.apache.batik.ext.awt.image.rendered.FormatRed
- All Implemented Interfaces:
RenderedImage
,CachableRed
This allows you to specify the ColorModel, Alpha premult and/or
SampleModel to be used for output. If the input image lacks
Alpha and alpha is included in output then it is filled with
alpha=1. In all other cases bands are simply copied.
- Version:
- $Id: FormatRed.java 1733416 2016-03-03 07:07:13Z gadams $
-
Field Summary
Fields inherited from class org.apache.batik.ext.awt.image.rendered.AbstractRed
bounds, cm, minTileX, minTileY, numXTiles, numYTiles, props, sm, srcs, tileGridXOff, tileGridYOff, tileHeight, tileWidth
-
Constructor Summary
ConstructorsConstructorDescriptionFormatRed
(CachableRed cr, ColorModel cm) FormatRed
(CachableRed cr, SampleModel sm) Construct an instance of CachableRed around a BufferedImage. -
Method Summary
Modifier and TypeMethodDescriptionstatic CachableRed
construct
(CachableRed src, ColorModel cm) getProperty
(String name) String[]
fetch the source image for this node.static ColorModel
makeColorModel
(CachableRed cr, SampleModel sm) static SampleModel
makeSampleModel
(CachableRed cr, ColorModel cm) Methods inherited from class org.apache.batik.ext.awt.image.rendered.AbstractRed
copyBand, copyToRaster, getBounds, getColorModel, getData, getData, getDependencyRegion, getDirtyRegion, getHeight, getMinTileX, getMinTileY, getMinX, getMinY, getNumXTiles, getNumYTiles, getSampleModel, getSources, getTile, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, getWidth, getXTile, getYTile, init, init, makeTile, updateTileGridInfo
-
Constructor Details
-
FormatRed
Construct an instance of CachableRed around a BufferedImage. -
FormatRed
-
-
Method Details
-
construct
-
getSource
fetch the source image for this node. -
getProperty
- Specified by:
getProperty
in interfaceRenderedImage
- Overrides:
getProperty
in classAbstractRed
-
getPropertyNames
- Specified by:
getPropertyNames
in interfaceRenderedImage
- Overrides:
getPropertyNames
in classAbstractRed
-
copyData
-
makeSampleModel
-
makeColorModel
-