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,
RenderingHints rh) |
Modifier and Type | Method and Description |
---|---|
WritableRaster |
copyData(WritableRaster wr) |
void |
filterBL(Raster off,
WritableRaster dst,
int[] xTile,
int[] xOff,
int[] yTile,
int[] yOff) |
void |
filterBLPre(Raster off,
WritableRaster dst,
int[] xTile,
int[] xOff,
int[] yTile,
int[] yOff) |
void |
filterNN(Raster off,
WritableRaster dst,
int[] xTile,
int[] xOff,
int[] yTile,
int[] yOff)
Does displacement map using Nearest neighbor interpolation
|
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, updateTileGridInfo
public DisplacementMapRed(CachableRed image, CachableRed offsets, ARGBChannel xChannel, ARGBChannel yChannel, float scaleX, float scaleY, 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 WritableRaster copyData(WritableRaster wr)
public Raster getTile(int tileX, int tileY)
getTile
in interface RenderedImage
getTile
in class AbstractRed
public 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(Raster off, WritableRaster dst, int[] xTile, int[] xOff, int[] yTile, int[] yOff)
public void filterBLPre(Raster off, WritableRaster dst, int[] xTile, int[] xOff, int[] yTile, int[] yOff)
public void filterNN(Raster off, 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 © 2000–2023 Apache Software Foundation. All rights reserved.