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 |
Run the DeskewExtendedCommand on an image and applies the Deskew Extended filter.
Visual Basic | Copy Code |
---|---|
Public Sub DeskewExtendedCommandExample() |
C# | Copy Code |
---|---|
public void DeskewExtendedCommandExample() |
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.Core.DeskewExtendedCommand
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Reference
DeskewExtendedCommand MembersLeadtools.ImageProcessing.Core Namespace
Removing Noise
DeskewCommand Class
DespeckleCommand Class
WindowLevelCommand Class
ApplyTransformationParametersCommand Class
GetRegistrationMarksCenterMass Method
GetTransformationParameters Method
IsRegistrationMark Method
SearchRegistrationMarksCommand Class
DeskewCommand Class