ImageGear .NET v25.2 - Updated
RadialWave Method
Example 




ImageGear.Processing.Advanced Assembly > ImageGear.Processing Namespace > ImGearEffects Class : RadialWave Method
Page specified.
Center of the wave effect.
Wave amplitude. Measurement units - pixel / 100.
Wave frequency. The frequency is defined as 1 / T, where T is a wave period in pixels.
Wave phase, in radians.
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.
If this parameter is true then an interpolation is used during processing.
ImageGear.Core.ImGearPixel class color.
This method provides a radial wave effect on the current raster page.
Syntax
'Declaration
 
Public Shared Sub RadialWave( _
   ByVal page As ImGearRasterPage, _
   ByVal center As ImGearPoint, _
   ByVal amplitude As Single, _
   ByVal frequency As Single, _
   ByVal phase As Single, _
   ByVal attenuation As Single, _
   ByVal interpolate As Boolean, _
   ByVal color As ImGearPixel _
) 
'Usage
 
Dim page As ImGearRasterPage
Dim center As ImGearPoint
Dim amplitude As Single
Dim frequency As Single
Dim phase As Single
Dim attenuation As Single
Dim interpolate As Boolean
Dim color As ImGearPixel
 
ImGearEffects.RadialWave(page, center, amplitude, frequency, phase, attenuation, interpolate, color)
public static void RadialWave( 
   ImGearRasterPage page,
   ImGearPoint center,
   float amplitude,
   float frequency,
   float phase,
   float attenuation,
   bool interpolate,
   ImGearPixel color
)
public: static void RadialWave( 
   ImGearRasterPage* page,
   ImGearPoint center,
   float amplitude,
   float frequency,
   float phase,
   float attenuation,
   bool interpolate,
   ImGearPixel* color
) 
public:
static void RadialWave( 
   ImGearRasterPage^ page,
   ImGearPoint center,
   float amplitude,
   float frequency,
   float phase,
   float attenuation,
   bool interpolate,
   ImGearPixel^ color
) 

Parameters

page
Page specified.
center
Center of the wave effect.
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
// Distorts an image with a radial wave.

// Center point of the wave, set to center of image.
ImGearPoint igPoint = new ImGearPoint();
igPoint.X = igRasterPage.DIB.Width / 2;
igPoint.Y = igRasterPage.DIB.Height / 2;

// Warp the image with a radial wave with an amplitude of 0.25, frequency of 20 pixels,
//  0 phase, and slight attenuation. Interpolation is enabled, and no fill color is specified.
ImGearEffects.RadialWave(
        igRasterPage, igPoint, (float)(0.25), (float)(1.0 / 20.0),
        (float)(0.0), (float)(0.01), true, null);
' Distorts an image with a radial wave.

     ' Center point of the wave, set to center of image.
     Dim igPoint As New ImGearPoint()
     igPoint.X = igRasterPage.DIB.Width / 2
     igPoint.Y = igRasterPage.DIB.Height / 2

     ' Warp the image with a radial wave with an amplitude of 0.25, frequency of 20 pixels,
     '  0 phase, and slight attenuation. Interpolation is enabled, and no fill color is specified.
     ImGearEffects.RadialWave(igRasterPage, igPoint, CSng((0.25)), CSng((1 / 20)), CSng((0)), CSng((0.01)), _
True, Nothing)
See Also

Reference

ImGearEffects Class
ImGearEffects Members
ImGearRasterPage Class
ImGearPoint Structure
ImGearPixel Class

Is this page helpful?
Yes No
Thanks for your feedback.