ChartDirector 7.1 (C++ Edition)

DrawArea.waveTransform


Usage

void waveTransform(int period, double amplitude, double direction = 0, double startAngle = 0, bool longitudinal = false, int bgColor = 0xffffff, int filter = LinearFilter, double blur = 1);

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.
longitudinalfalseDetermine if the wave is transversal or longitudinal. true means transversal. false 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