Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.batik.ext.awt.image.rendered
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

    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.

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
`FormatRed(CachableRed cr, ColorModel cm)`
`FormatRed(CachableRed cr, SampleModel sm)` Construct an instance of CachableRed around a BufferedImage.

Method Summary
`static CachableRed` | `construct(CachableRed src, ColorModel cm)`
`WritableRaster` | `copyData(WritableRaster wr)`
`Object` | `getProperty(String name)`
`String[]` | `getPropertyNames()`
`CachableRed` | `getSource()` 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`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

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)

### getSource

    public CachableRed getSource()

  fetch the source image for this node.

### getProperty

    public Object getProperty(String name)

  Specified by:
    `getProperty` in interface `RenderedImage`
  Overrides:
    `getProperty` in class `AbstractRed`

### getPropertyNames

    public String[] getPropertyNames()

  Specified by:
    `getPropertyNames` in interface `RenderedImage`
  Overrides:
    `getPropertyNames` in class `AbstractRed`

### copyData

    public WritableRaster copyData(WritableRaster wr)

### makeSampleModel

    public static SampleModel makeSampleModel(CachableRed cr,
                                              ColorModel cm)

### makeColorModel

    public static ColorModel makeColorModel(CachableRed cr,
                                            SampleModel sm)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2008 Apache Software Foundation. All Rights Reserved.