public class DisplacementMapRed extends AbstractRed
bounds, cm, minTileX, minTileY, numXTiles, numYTiles, props, sm, srcs, tileGridXOff, tileGridYOff, tileHeight, tileWidth| Constructor and Description |
|---|
DisplacementMapRed(CachableRed image,
CachableRed offsets,
ARGBChannel xChannel,
ARGBChannel yChannel,
float scaleX,
float scaleY,
java.awt.RenderingHints rh) |
| Modifier and Type | Method and Description |
|---|---|
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) |
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, updateTileGridInfopublic DisplacementMapRed(CachableRed image, CachableRed offsets, ARGBChannel xChannel, ARGBChannel yChannel, float scaleX, float scaleY, java.awt.RenderingHints rh)
image - the image to distortoffsets - the displacement mapxChannel - defines the channel of off whose values will be
on X-axis operationyChannel - defines the channel of off whose values will bescaleX - defines the scale factor of the filter operation
on the X axis.scaleY - defines the scale factor of the filter operation
on the Y axisrh - the rendering hintspublic java.awt.image.WritableRaster copyData(java.awt.image.WritableRaster wr)
public java.awt.image.Raster getTile(int tileX,
int tileY)
getTile in interface java.awt.image.RenderedImagegetTile in class AbstractRedpublic org.apache.batik.ext.awt.image.rendered.DisplacementMapRed.TileOffsets getXOffsets(int xTile)
public org.apache.batik.ext.awt.image.rendered.DisplacementMapRed.TileOffsets getYOffsets(int yTile)
public void filterBL(java.awt.image.Raster off,
java.awt.image.WritableRaster dst,
int[] xTile,
int[] xOff,
int[] yTile,
int[] yOff)
public void filterBLPre(java.awt.image.Raster off,
java.awt.image.WritableRaster dst,
int[] xTile,
int[] xOff,
int[] yTile,
int[] yOff)
public void filterNN(java.awt.image.Raster off,
java.awt.image.WritableRaster dst,
int[] xTile,
int[] xOff,
int[] yTile,
int[] yOff)
off - the displacement mapdst - 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.Copyright ? 2009 Apache Software Foundation. All Rights Reserved.