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.
-
Field Summary
Fields inherited from class 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 CachableRedconstruct(CachableRed src, ColorModel cm) getProperty(String name) String[]fetch the source image for this node.static ColorModelmakeColorModel(CachableRed cr, SampleModel sm) static SampleModelmakeSampleModel(CachableRed cr, ColorModel cm) Methods inherited from class 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:
getPropertyin interfaceRenderedImage- Overrides:
getPropertyin classAbstractRed
-
getPropertyNames
- Specified by:
getPropertyNamesin interfaceRenderedImage- Overrides:
getPropertyNamesin classAbstractRed
-
copyData
-
makeSampleModel
-
makeColorModel
-