// 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)