AutoDeskewCommand Constructor (Int32, Int32, AutoDeskewCropMode, Color, Rectangle) |
Initializes a new instance of the AutoDeskewCommand specifying the precision, limit
angle, crop mode, background color, and rectangular area to process.
Namespace:
Atalasoft.Imaging.ImageProcessing.Document
Assembly:
Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax public AutoDeskewCommand(
int precision,
int limitAngle,
AutoDeskewCropMode cropMode,
Color backgroundColor,
Rectangle area
)
Public Sub New (
precision As Integer,
limitAngle As Integer,
cropMode As AutoDeskewCropMode,
backgroundColor As Color,
area As Rectangle
)
Parameters
- precision
- Type: SystemInt32
The precision of the deskew angle calculation. This value is the inverse of the degree
precision. - limitAngle
- Type: SystemInt32
The maximum deskew angle in degrees. (-360 to 360 excluding 0) - cropMode
- Type: Atalasoft.Imaging.ImageProcessing.DocumentAutoDeskewCropMode
The method of cropping the resulting deskewed image. - backgroundColor
- Type: System.DrawingColor
The background color to use when deskewing the image. - area
- Type: System.DrawingRectangle
The rectangular area that will be used for determining the deskew angle.
Exceptions Exception | Condition |
---|
| Thrown if the percision is less than 1 or if limitAngle is less than -360, greater than 360 or equal to
0. |
See Also