Visual Basic (Declaration) | |
---|---|
Public Class DeskewExtendedCommand Inherits RasterCommand Implements IRasterCommand |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public class DeskewExtendedCommand : RasterCommand, IRasterCommand |
C++/CLI | |
---|---|
public ref class DeskewExtendedCommand : public RasterCommand, IRasterCommand |
Like the DeskewCommand, you can use this command class to automatically straighten scanned documents. This class extends the DeskewCommand class to increase the possible deskew angle (from 20 degrees to 45 degrees in either direction). In addition it adds the capability to specify the resolution of the rotation step. If the Flags property contains DeskewExtendedCommandFlags.ReturnAngleOnly, the method will update the Angle with the deskew angle without rotating the image. This command includes an option to skip deskewing if the angle is very small. The calculated rotation is limited to 45 degrees in either direction. This method is intended for images, such as scanned documents, that are mainly horizontal lines of text. The results are less predictable with other types of images. This method supports 12 and 16-bit grayscale and 48 and 64-bit color images. Support for 12 and 16-bit grayscale and 48 and 64-bit color images is available only in the Document/Medical toolkits. This method does not support signed data images. This command does not support 32-bit grayscale images.
System.Object
Leadtools.ImageProcessing.RasterCommand
Leadtools.ImageProcessing.DeskewExtendedCommand
Target Platforms: Microsoft .NET CF Framework 2.0, Windows Mobile 5 PocketPC, Windows Mobile 5 Smartphone, Windows Mobile 6