ImageGear .NET - Updated
WarpParabolic Method
Example 




ImageGear24.Processing.Advanced Assembly > ImageGear.Processing Namespace > ImGearEffects Class : WarpParabolic Method
Page class object.
Center of the paraboloid in pixels.
Extrusion strength.
Length of the effect in X direction in pixels.
Length of the effect in Y direction in pixels.
If this parameter is true then an interpolation is used during processing.
ImageGear.Core.ImGearPixel class color.
This method provides warping around paraboloid on the current raster page.
Syntax
'Declaration
 
Public Shared Sub WarpParabolic( _
   ByVal page As ImGearRasterPage, _
   ByVal center As ImGearPoint, _
   ByVal strength As Single, _
   ByVal radiusX As Integer, _
   ByVal radiusY As Integer, _
   ByVal interpolate As Boolean, _
   ByVal color As ImGearPixel _
) 
'Usage
 
Dim page As ImGearRasterPage
Dim center As ImGearPoint
Dim strength As Single
Dim radiusX As Integer
Dim radiusY As Integer
Dim interpolate As Boolean
Dim color As ImGearPixel
 
ImGearEffects.WarpParabolic(page, center, strength, radiusX, radiusY, interpolate, color)
public static void WarpParabolic( 
   ImGearRasterPage page,
   ImGearPoint center,
   float strength,
   int radiusX,
   int radiusY,
   bool interpolate,
   ImGearPixel color
)
public: static void WarpParabolic( 
   ImGearRasterPage* page,
   ImGearPoint center,
   float strength,
   int radiusX,
   int radiusY,
   bool interpolate,
   ImGearPixel* color
) 
public:
static void WarpParabolic( 
   ImGearRasterPage^ page,
   ImGearPoint center,
   float strength,
   int radiusX,
   int radiusY,
   bool interpolate,
   ImGearPixel^ color
) 

Parameters

page
Page class object.
center
Center of the paraboloid in pixels.
strength
Extrusion strength.
radiusX
Length of the effect in X direction in pixels.
radiusY
Length of the effect in Y direction in pixels.
interpolate
If this parameter is true then an interpolation is used during processing.
color
ImageGear.Core.ImGearPixel class color.
Example
// Warp the image around a parabola.

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

// Warp around the parabola with a strength of 50000, an x radius of 300, a y radius of 100, 
//  interpolation on, and no fill color.
ImGearEffects.WarpParabolic(igRasterPage, igPoint, 50000, 300, 100, true, null);
' Warp the image around a parabola.

' Center point of the parabola, 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 parabola with a strength of 50000, an x radius of 300, a y radius of 100, 
'  interpolation on, and no fill color.
ImGearEffects.WarpParabolic(igRasterPage, igPoint, 50000, 300, 100, True, Nothing)
See Also

Reference

ImGearEffects Class
ImGearEffects Members
ImGearRasterPage Class
ImGearPoint Structure