Leadtools.CF Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.6.15
DeskewExtendedCommand Class
See Also  Members  
Leadtools.ImageProcessing Namespace : DeskewExtendedCommand Class



Rotates the specified image to straighten it. This command is typically used to automatically straighten scanned images. This method is available in the Document\Medical toolkits.

Syntax

Visual Basic (Declaration) 
Public Class DeskewExtendedCommand 
   Inherits RasterCommand
   Implements IRasterCommand 
Visual Basic (Usage)Copy Code
Dim instance As DeskewExtendedCommand
C# 
public class DeskewExtendedCommand : RasterCommand, IRasterCommand  
C++/CLI 
public ref class DeskewExtendedCommand : public RasterCommand, IRasterCommand  

Remarks

  • 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.

Inheritance Hierarchy

System.Object
   Leadtools.ImageProcessing.RasterCommand
      Leadtools.ImageProcessing.DeskewExtendedCommand

Requirements

Target Platforms: Microsoft .NET CF Framework 2.0, Windows Mobile 5 PocketPC, Windows Mobile 5 Smartphone, Windows Mobile 6

See Also