ChartDirector 6.0 (Perl Edition)

DrawArea.waveTransform


Usage

waveTransform(period, amplitude [, direction [, startAngle [, longitudinal [, bgColor [, filter [, blur ]]]]]])

Description

Moves the pixels on the drawing surface according to a sinusoidal function to achieve a wave effect.

Arguments

ArgumentDefaultDescription
period(Mandatory)The period of the wave in pixels.
amplitude(Mandatory)The amplitude of the wave in pixels.
direction0The propagation direction of the wave. The upward pointing direction is 0 degree, and the angle is measured clockwise.
startAngle0The initial phase angle of the wave in degrees.
longitudinalfalse (zero)Determine if the wave is transversal or longitudinal. true (non-zero) means transversal. false (zero) means longitudinal.
bgColorFFFFFFThe background color used to fill the space left after transformation.
filterLinearFilterThe filter to use for re-sampling.
blur1The blur factor to use for re-sampling.

Return Value

None