ImageGear Professional for Windows ActiveX
RippleFreeHand Method

Description:

Provides the ripple effect on the image, as if it is looked at through a relief glass. The function uses a custom ripple pattern, defined as two one-dimensional arrays containing light deviations in X and Y directions.

Syntax:

Sub RippleFreeHand(Page As IGPage, XDistribution As IGDataArray,
YDistribution As IGDataArray, XPeriod As Long, XPhase As Long,
YPeriod As Long, YPhase As Long, smoothness As Single, Angle As
Single)

Parameters:

Name Description
Page IGPage Object to which to apply the effect.
XDistribution 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.
YDistribution 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.
XPeriod Horizontal period of the repeating pattern. It corresponds to number of points from the xDistribution array that should be used in the transform, and does not have to be equal to the length of the array.
XPhase Index of the first point in the xDistribution array to be used in the transform.
YPeriod Vertical period of the repeating pattern. It corresponds to number of points from the yDistribution array, that should be used in the transform, and does not have to be equal to the length of the array.
YPhase Index of the first point in the yDistribution 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.

Return Value:

N/A

Bits Per Pixel:

All

Sample:

Image Processing and Effects

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback