|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Implements a DisplacementMap operation, which takes pixel values from another image to spatially displace the input image
Field Summary | |
static int |
CHANNEL_A
|
static int |
CHANNEL_B
|
static int |
CHANNEL_G
|
static int |
CHANNEL_R
|
Fields inherited from interface java.awt.image.renderable.RenderableImage |
HINTS_OBSERVED |
Method Summary | |
double |
getScale()
Returns the displacement scale factor |
ARGBChannel |
getXChannelSelector()
Returns the xChannelSelector |
ARGBChannel |
getYChannelSelector()
Returns the yChannelSelector |
void |
setScale(double scale)
The displacement scale factor |
void |
setSources(List srcs)
The sources to be used in the displacement operation The source at index 0 is displacement by the channels in source at index 1 defined by the xChannelSelector and the yChannelSelector. |
void |
setXChannelSelector(ARGBChannel xChannelSelector)
Select which component values will be used for displacement along the X axis |
void |
setYChannelSelector(ARGBChannel yChannelSelector)
Select which component values will be used for displacement along the Y axis |
Methods inherited from interface org.apache.batik.ext.awt.image.renderable.FilterColorInterpolation |
getOperationColorSpace, isColorSpaceLinear, setColorSpaceLinear |
Methods inherited from interface org.apache.batik.ext.awt.image.renderable.Filter |
getBounds2D, getDependencyRegion, getDirtyRegion, getTimeStamp |
Methods inherited from interface java.awt.image.renderable.RenderableImage |
createDefaultRendering, createRendering, createScaledRendering, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getWidth, isDynamic |
Field Detail |
public static final int CHANNEL_R
public static final int CHANNEL_G
public static final int CHANNEL_B
public static final int CHANNEL_A
Method Detail |
public void setSources(List srcs)
srcs
- The list of images used in the operation.public void setScale(double scale)
scale
- can be any number.public double getScale()
public void setXChannelSelector(ARGBChannel xChannelSelector)
xChannelSelector
- value is among R,
G, B and A.public ARGBChannel getXChannelSelector()
public void setYChannelSelector(ARGBChannel yChannelSelector)
yChannelSelector
- value is among R,
G, B and A.public ARGBChannel getYChannelSelector()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |