org.apache.batik.ext.awt.image.renderable

Interface DisplacementMapRable

public interface DisplacementMapRable extends FilterColorInterpolation

Implements a DisplacementMap operation, which takes pixel values from another image to spatially displace the input image
Field Summary
intCHANNEL_A
intCHANNEL_B
intCHANNEL_G
intCHANNEL_R
Method Summary
doublegetScale()
Returns the displacement scale factor
ARGBChannelgetXChannelSelector()
Returns the xChannelSelector
ARGBChannelgetYChannelSelector()
Returns the yChannelSelector
voidsetScale(double scale)
The displacement scale factor
voidsetSources(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.
voidsetXChannelSelector(ARGBChannel xChannelSelector)
Select which component values will be used for displacement along the X axis
voidsetYChannelSelector(ARGBChannel yChannelSelector)
Select which component values will be used for displacement along the Y axis

Field Detail

CHANNEL_A

public int CHANNEL_A

CHANNEL_B

public int CHANNEL_B

CHANNEL_G

public int CHANNEL_G

CHANNEL_R

public int CHANNEL_R

Method Detail

getScale

public double getScale()
Returns the displacement scale factor

getXChannelSelector

public ARGBChannel getXChannelSelector()
Returns the xChannelSelector

getYChannelSelector

public ARGBChannel getYChannelSelector()
Returns the yChannelSelector

setScale

public void setScale(double scale)
The displacement scale factor

Parameters: scale can be any number.

setSources

public 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. The displacement amount is defined by the scale attribute.

Parameters: srcs The list of images used in the operation.

setXChannelSelector

public void setXChannelSelector(ARGBChannel xChannelSelector)
Select which component values will be used for displacement along the X axis

Parameters: xChannelSelector value is among R, G, B and A.

setYChannelSelector

public void setYChannelSelector(ARGBChannel yChannelSelector)
Select which component values will be used for displacement along the Y axis

Parameters: yChannelSelector value is among R, G, B and A.

Copyright B) 2007 Apache Software Foundation. All Rights Reserved.