ImageGear for .NET
DirectionalWave Method
See Also  Example Send Feedback
ImageGear21.Processing.Advanced Assembly > ImageGear.Processing Namespace > ImGearEffects Class : DirectionalWave Method




page
Page class object.
angle
Wave angle, in radians.
amplitude
Wave amplitude. Measurement units - pixel / 100.
frequency
Wave frequency. The frequency is defined as 1 / T, where T is a wave period in pixels.
phase
Wave phase, in radians.
attenuation
Wave attenuation. The attenuation factor of the wave is calculated as exp(-attenuation * r), where r is a distance from the wave center to the current wave point.
interpolate
If this parameter is true then an interpolation is used during processing.
color
ImageGear.Core.ImGearPixel class color.

Glossary Item Box

Provides a directional wave effect on the current raster page.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Parameters

page
Page class object.
angle
Wave angle, in radians.
amplitude
Wave amplitude. Measurement units - pixel / 100.
frequency
Wave frequency. The frequency is defined as 1 / T, where T is a wave period in pixels.
phase
Wave phase, in radians.
attenuation
Wave attenuation. The attenuation factor of the wave is calculated as exp(-attenuation * r), where r is a distance from the wave center to the current wave point.
interpolate
If this parameter is true then an interpolation is used during processing.
color
ImageGear.Core.ImGearPixel class color.

Example

C#Copy Code
// Warps the image with a wave at a 45 degree angle, an amplitude of 0.25, frequency of 50 pixels,
//  0 phase, and no attenuation. Interpolation is enabled, and no fill color is specified.
ImGearEffects.DirectionalWave(
    igRasterPage, (float)(45.0 / 180.0 * Math.PI), (float)(0.25), (float)(1.0 / 50.0),
    (float)(0.0), (float)(0.0), true, null);
Visual BasicCopy Code
' Warps the image with a wave at a 45 degree angle, an amplitude of 0.25, frequency of 50 pixels,
     '  0 phase, and no attenuation. Interpolation is enabled, and no fill color is specified.
     ImGearEffects.DirectionalWave(igRasterPage, CSng((45 / 180 * Math.PI)), CSng((0.25)), CSng((1 / 50)), _
CSng((0)), CSng((0)), True, Nothing)

See Also

©2013. Accusoft Corporation. All Rights Reserved.