Class FormatRed
- java.lang.Object
-
- org.apache.batik.ext.awt.image.rendered.AbstractRed
-
- org.apache.batik.ext.awt.image.rendered.FormatRed
-
- All Implemented Interfaces:
java.awt.image.RenderedImage,CachableRed
public class FormatRed extends AbstractRed
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
Constructors Constructor Description FormatRed(CachableRed cr, java.awt.image.ColorModel cm)FormatRed(CachableRed cr, java.awt.image.SampleModel sm)Construct an instance of CachableRed around a BufferedImage.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CachableRedconstruct(CachableRed src, java.awt.image.ColorModel cm)java.awt.image.WritableRastercopyData(java.awt.image.WritableRaster wr)java.lang.ObjectgetProperty(java.lang.String name)java.lang.String[]getPropertyNames()CachableRedgetSource()fetch the source image for this node.static java.awt.image.ColorModelmakeColorModel(CachableRed cr, java.awt.image.SampleModel sm)static java.awt.image.SampleModelmakeSampleModel(CachableRed cr, java.awt.image.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 Detail
-
FormatRed
public FormatRed(CachableRed cr, java.awt.image.SampleModel sm)
Construct an instance of CachableRed around a BufferedImage.
-
FormatRed
public FormatRed(CachableRed cr, java.awt.image.ColorModel cm)
-
-
Method Detail
-
construct
public static CachableRed construct(CachableRed src, java.awt.image.ColorModel cm)
-
getSource
public CachableRed getSource()
fetch the source image for this node.
-
getProperty
public java.lang.Object getProperty(java.lang.String name)
- Specified by:
getPropertyin interfacejava.awt.image.RenderedImage- Overrides:
getPropertyin classAbstractRed
-
getPropertyNames
public java.lang.String[] getPropertyNames()
- Specified by:
getPropertyNamesin interfacejava.awt.image.RenderedImage- Overrides:
getPropertyNamesin classAbstractRed
-
copyData
public java.awt.image.WritableRaster copyData(java.awt.image.WritableRaster wr)
-
makeSampleModel
public static java.awt.image.SampleModel makeSampleModel(CachableRed cr, java.awt.image.ColorModel cm)
-
makeColorModel
public static java.awt.image.ColorModel makeColorModel(CachableRed cr, java.awt.image.SampleModel sm)
-
-