The DeskewActivity Class is available in LEADTOOLS Document and Medical Imaging toolkits.
Rotates the specified image to straighten it. This activity is typically used to automatically straighten scanned images. This activity is available in the Document\Medical Toolkits.Visual Basic (Declaration) | |
---|---|
Public Class DeskewActivity Inherits ImageProcessingBaseActivity Implements IComponent, IDisposable |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As DeskewActivity |
C# | |
---|---|
public class DeskewActivity : ImageProcessingBaseActivity, IComponent, IDisposable |
C++/CLI | |
---|---|
public ref class DeskewActivity : public ImageProcessingBaseActivity, IComponent, IDisposable |
- If the DeskewOptions property contains DeskewCommandDeskewOptions.ReturnAngleOnly, the activity will update the Angle property without rotating the image.
- The calculated rotation is limited to 20 degrees in either direction. This activity 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 activity includes an option to skip deskewing if the angle is very small.
- This activity does not support 12 and 16-bit grayscale and 48 and 64-bit color images. If the image is 12 and 16-bit grayscale and 48 and 64-bit color, the activity will not throw an exception.
- This activity does not support signed data images.
- This activity does not support 32-bit grayscale images.
System.Object
System.Workflow.ComponentModel.DependencyObject
System.Workflow.ComponentModel.Activity
Leadtools.Workflow.Raster.WorkflowImageActivity
Leadtools.Workflow.Raster.DisposableImageActivity
Leadtools.Workflow.ImageProcessing.ImageProcessingBaseActivity
Leadtools.Workflow.ImageProcessing.DeskewActivity
Target Platforms: Microsoft .NET Framework 3.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7