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




page
Page class object.
center
Center of the sphere in pixels.
radius
Sphere radius in pixels.
height
Height of the sphere segment in pixels. Height can be changed from (-radius) to (radius).
interpolate
If this parameter is true then an interpolation is used during processing.
color
ImageGear.Core.ImGearPixel class color.

Glossary Item Box

This method provides warping around sphere on the current raster page.

Syntax

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

Parameters

page
Page class object.
center
Center of the sphere in pixels.
radius
Sphere radius in pixels.
height
Height of the sphere segment in pixels. Height can be changed from (-radius) to (radius).
interpolate
If this parameter is true then an interpolation is used during processing.
color
ImageGear.Core.ImGearPixel class color.

Example

C#Copy Code
// 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);
Visual BasicCopy Code
' 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)

See Also

©2013. Accusoft Corporation. All Rights Reserved.