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 DisplacementMapRed

    java.lang.Object
      org.apache.batik.ext.awt.image.rendered.AbstractRed
          org.apache.batik.ext.awt.image.rendered.DisplacementMapRed

All Implemented Interfaces:
  CachableRed, java.awt.image.RenderedImage

public class DisplacementMapRed
extends AbstractRed

This implementation of RenderableImage will render its input GraphicsNode on demand for tiles.

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
`DisplacementMapRed(CachableRed image, CachableRed offsets, ARGBChannel xChannel, ARGBChannel yChannel, float scaleX, float scaleY, java.awt.RenderingHints rh)`

Method Summary
`java.awt.image.WritableRaster` | `copyData(java.awt.image.WritableRaster wr)`
`void` | `filterBL(java.awt.image.Raster off, java.awt.image.WritableRaster dst, int[] xTile, int[] xOff, int[] yTile, int[] yOff)`
`void` | `filterBLPre(java.awt.image.Raster off, java.awt.image.WritableRaster dst, int[] xTile, int[] xOff, int[] yTile, int[] yOff)`
`void` | `filterNN(java.awt.image.Raster off, java.awt.image.WritableRaster dst, int[] xTile, int[] xOff, int[] yTile, int[] yOff)` Does displacement map using Nearest neighbor interpolation
`java.awt.image.Raster` | `getTile(int tileX, int tileY)`
`org.apache.batik.ext.awt.image.rendered.DisplacementMapRed.TileOffsets` | `getXOffsets(int xTile)`
`org.apache.batik.ext.awt.image.rendered.DisplacementMapRed.TileOffsets` | `getYOffsets(int yTile)`

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, getProperty, getPropertyNames, getSampleModel, getSources, 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

### DisplacementMapRed

    public DisplacementMapRed(CachableRed image,
                              CachableRed offsets,
                              ARGBChannel xChannel,
                              ARGBChannel yChannel,
                              float scaleX,
                              float scaleY,
                              java.awt.RenderingHints rh)

Parameters:
  `scaleX` - defines the scale factor of the filter operation on the X axis.
  `scaleY` - defines the scale factor of the filter operation on the Y axis
  `xChannel` - defines the channel of off whose values will be on X-axis operation

Method Detail

### copyData

    public java.awt.image.WritableRaster copyData(java.awt.image.WritableRaster wr)

### getTile

    public java.awt.image.Raster getTile(int tileX,
                                         int tileY)

  Specified by:
    `getTile` in interface `java.awt.image.RenderedImage`
  Overrides:
    `getTile` in class `AbstractRed`

### getXOffsets

    public org.apache.batik.ext.awt.image.rendered.DisplacementMapRed.TileOffsets getXOffsets(int xTile)

### getYOffsets

    public org.apache.batik.ext.awt.image.rendered.DisplacementMapRed.TileOffsets getYOffsets(int yTile)

### filterBL

    public void filterBL(java.awt.image.Raster off,
                         java.awt.image.WritableRaster dst,
                         int[] xTile,
                         int[] xOff,
                         int[] yTile,
                         int[] yOff)

### filterBLPre

    public void filterBLPre(java.awt.image.Raster off,
                            java.awt.image.WritableRaster dst,
                            int[] xTile,
                            int[] xOff,
                            int[] yTile,
                            int[] yOff)

### filterNN

    public void filterNN(java.awt.image.Raster off,
                         java.awt.image.WritableRaster dst,
                         int[] xTile,
                         int[] xOff,
                         int[] yTile,
                         int[] yOff)

  Does displacement map using Nearest neighbor interpolation

  Parameters:
    `dst` - stores the filtered image. If null, a destination will be created. img and dst can refer to the same Raster, in which situation the img will be modified.

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 © 2004 Apache Software Foundation. All Rights Reserved.