This function rotates the image by Angle (in degrees) and crops the borders of the original bitmap.
It is useful to deskew an image knowing the rotation angle.
Assembly: IEvolution2 (in IEvolution2.dll) Version: 10.1.0.0
Syntax
C# | Visual Basic | Visual C++ |
public void RotateAndCrop( double angle, bool antialias, AntialiasMode antialiasMode )
Public Sub RotateAndCrop ( _ angle As Double, _ antialias As Boolean, _ antialiasMode As AntialiasMode _ )
public: void RotateAndCrop( double angle, bool antialias, AntialiasMode antialiasMode )
Parameters
- angle
- Double
Rotation angle. Must be in the range -90 and +90 degrees.
- antialias
- Boolean
if True, an antialias algorithm is used
- antialiasMode
- AntialiasMode
Specifies the antialias quality.
Examples
CopyC#
double d = ieViewer1.Image.SkewDetection; ieViewer1.Image.RotateAndCrop(d,true,AntialiasMode.Fast);