// Warp the image around a sphere.
// Center point of the sphere, set to center of image.
ImGearPoint igPoint = new ImGearPoint();
igPoint.X = igRasterPage.DIB.Width / 2;
igPoint.Y = igRasterPage.DIB.Height / 2;
// Warp around the sphere with a radius of 200, height of -100, interpolation on, and no fill color.
ImGearEffects.WarpSphere(igRasterPage, igPoint, 200, -100, true, null);
' Warp the image around a sphere.
' Center point of the sphere, set to center of image.
Dim igPoint As New ImGearPoint()
igPoint.X = igRasterPage.DIB.Width / 2
igPoint.Y = igRasterPage.DIB.Height / 2
' Warp around the sphere with a radius of 200, height of -100, interpolation on, and no fill color.
ImGearEffects.WarpSphere(igRasterPage, igPoint, 200, -100, True, Nothing)