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




page
Page class object.
distance
Distance to the cylinder axis in pixels. It is measured from the left edge in the case of a vertical cylinder and from the top edge in the case of a horizontal one.
radius
Cylinder radius in pixels.
height
Height of the cylinder segment in pixels. Height can be changed from (-radius) to (radius).
horizontal
If this parameter is true then the cylinder is horizontal, otherwise it is vertical.
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 cylinder on the current raster page.

Syntax

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

Parameters

page
Page class object.
distance
Distance to the cylinder axis in pixels. It is measured from the left edge in the case of a vertical cylinder and from the top edge in the case of a horizontal one.
radius
Cylinder radius in pixels.
height
Height of the cylinder segment in pixels. Height can be changed from (-radius) to (radius).
horizontal
If this parameter is true then the cylinder is horizontal, otherwise it is vertical.
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 vertical cylinder, 300 pixels from the left edge, 
//  with a 200 pixel radius and 50 pixels below the image.
ImGearEffects.WarpCylinder(igRasterPage, 300, 200, -50, false, true, null);
Visual BasicCopy Code
' Warp the image around a vertical cylinder, 300 pixels from the left edge, 
     '  with a 200 pixel radius and 50 pixels below the image.
     ImGearEffects.WarpCylinder(igRasterPage, 300, 200, -50, False, True, _
Nothing)

See Also

©2013. Accusoft Corporation. All Rights Reserved.