org.apache.batik.ext.awt.image.rendered

Class FormatRed

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.
Constructor Summary
FormatRed(CachableRed cr, SampleModel sm)
Construct an instance of CachableRed around a BufferedImage.
FormatRed(CachableRed cr, ColorModel cm)
Method Summary
static CachableRedconstruct(CachableRed src, ColorModel cm)
WritableRastercopyData(WritableRaster wr)
ObjectgetProperty(String name)
String[]getPropertyNames()
CachableRedgetSource()
fetch the source image for this node.
static ColorModelmakeColorModel(CachableRed cr, SampleModel sm)
static SampleModelmakeSampleModel(CachableRed cr, ColorModel cm)

Constructor Detail

FormatRed

public FormatRed(CachableRed cr, SampleModel sm)
Construct an instance of CachableRed around a BufferedImage.

FormatRed

public FormatRed(CachableRed cr, ColorModel cm)

Method Detail

construct

public static CachableRed construct(CachableRed src, ColorModel cm)

copyData

public WritableRaster copyData(WritableRaster wr)

getProperty

public Object getProperty(String name)

getPropertyNames

public String[] getPropertyNames()

getSource

public CachableRed getSource()
fetch the source image for this node.

makeColorModel

public static ColorModel makeColorModel(CachableRed cr, SampleModel sm)

makeSampleModel

public static SampleModel makeSampleModel(CachableRed cr, ColorModel cm)
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.