Visual Basic
C#
Managed Extensions for C++
C++/CLI
Parameters
- page
- Page to apply the effect to.
- depth
- Strength of the Ripple effect.
- distributionX
- Array of points containing relative light deviations along the X axis in each cell. Each value typically ranges from -1 to 1. The number of points is flexible and should be chosen based on the period length relative to the image size and desired resolution of the effect.
- distributionY
- Array of points containing relative light deviations along the Y axis in each cell. Each value typically ranges from -1 to 1. The number of points is flexible and should be chosen based on the period length relative to the image size and desired resolution of the effect.
- periodX
- Horizontal period of the repeating pattern. It corresponds to number of points from the distributionX array that should be used in the transform, and does not have to be equal to the length of the array.
- phaseX
- Index of the first point in the distributionX array to be used in the transform.
- periodY
- Vertical period of the repeating pattern. It corresponds to number of points from the distributionY array, that should be used in the transform, and does not have to be equal to the length of the array.
- phaseY
- Index of the first point in the distributionY array to be used in the transform.
- smoothness
- Specifies how much the ripple pattern should be smoothed before applying.
- angle
- Specifies the angle for the ripple pattern, in degrees. Valid range is from 0 to 360.
This method provides the ripple effect on the image, as if it is looked at through a relief glass.
The method uses a custom ripple pattern, defined as two one-dimensional arrays containing light
deviations in X and Y directions.