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




page
Page to pinch.
center
Center of the pinch effect.
radius
Radius of the pinch effect.
strength
Pinch strength. Positive value means that the page is pinched away from the center.
interpolate
If this parameter is true then an interpolation is used during processing.
color
Pixel color.

Glossary Item Box

This method pinches a page toward or away from the pinch center.

Syntax

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

Parameters

page
Page to pinch.
center
Center of the pinch effect.
radius
Radius of the pinch effect.
strength
Pinch strength. Positive value means that the page is pinched away from the center.
interpolate
If this parameter is true then an interpolation is used during processing.
color
Pixel color.

Example

C#Copy Code
// Pinches an image.

// Point at which to pinch, center of image.
ImGearPoint igPoint = new ImGearPoint();
igPoint.X = igRasterPage.DIB.Width / 2;
igPoint.Y = igRasterPage.DIB.Height / 2;

// Pinch using a 128 pixel radius and a strength of 5, interpolation on and no fill color.
ImGearEffects.Pinch(igRasterPage, igPoint, 128, (float)5.0, true, null);
Visual BasicCopy Code
' Pinches an image.

' Point at which to pinch, center of image.
Dim igPoint As New ImGearPoint()
igPoint.X = igRasterPage.DIB.Width / 2
igPoint.Y = igRasterPage.DIB.Height / 2

' Pinch using a 128 pixel radius and a strength of 5, interpolation on and no fill color.
ImGearEffects.Pinch(igRasterPage, igPoint, 128, CSng(5), True, Nothing)

See Also

©2013. Accusoft Corporation. All Rights Reserved.