Interface DisplacementMapRable
- All Superinterfaces:
Filter, FilterColorInterpolation, RenderableImage
- All Known Implementing Classes:
DisplacementMapRable8Bit
Implements a DisplacementMap operation, which takes pixel values from
another image to spatially displace the input image
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from interface RenderableImage
HINTS_OBSERVED -
Method Summary
Modifier and TypeMethodDescriptiondoublegetScale()Returns the displacement scale factorReturns the xChannelSelectorReturns the yChannelSelectorvoidsetScale(double scale) The displacement scale factorvoidsetSources(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 axisvoidsetYChannelSelector(ARGBChannel yChannelSelector) Select which component values will be used for displacement along the Y axisMethods inherited from interface Filter
getBounds2D, getDependencyRegion, getDirtyRegion, getTimeStampMethods inherited from interface FilterColorInterpolation
getOperationColorSpace, isColorSpaceLinear, setColorSpaceLinearMethods inherited from interface RenderableImage
createDefaultRendering, createRendering, createScaledRendering, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getWidth, isDynamic
-
Field Details
-
CHANNEL_R
static final int CHANNEL_R- See Also:
-
CHANNEL_G
static final int CHANNEL_G- See Also:
-
CHANNEL_B
static final int CHANNEL_B- See Also:
-
CHANNEL_A
static final int CHANNEL_A- See Also:
-
-
Method Details
-
setSources
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.
-
setScale
void setScale(double scale) The displacement scale factor- Parameters:
scale- can be any number.
-
getScale
double getScale()Returns the displacement scale factor -
setXChannelSelector
Select which component values will be used for displacement along the X axis- Parameters:
xChannelSelector- value is among R, G, B and A.
-
getXChannelSelector
ARGBChannel getXChannelSelector()Returns the xChannelSelector -
setYChannelSelector
Select which component values will be used for displacement along the Y axis- Parameters:
yChannelSelector- value is among R, G, B and A.
-
getYChannelSelector
ARGBChannel getYChannelSelector()Returns the yChannelSelector
-