←Select platform

DeskewCommand Constructor()

Summary
Initializes a new DeskewCommand class object with default parameters.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public DeskewCommand() 
- (instancetype)init 
public DeskewCommand(); 
public: 
DeskewCommand(); 
__init__() # Default constructor 
Remarks

The default value for fillColor is RasterColor(0, 0, 0). The default value for angle is 0. The default value for flags is DeskewCommandFlags::DeskewImage | DeskewCommandFlags::FillExposedArea.

Example
C#
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.ImageProcessing.Core; 
 
public void DeskewCommandExample() 
{ 
   // Load an image 
   RasterCodecs codecs = new RasterCodecs(); 
   codecs.ThrowExceptionsOnInvalidImages = true; 
 
   RasterImage image = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir, "Clean.tif")); 
 
   // Prepare the command 
   DeskewCommand command = new DeskewCommand(); 
   //Deskew the image. 
   command.Flags = DeskewCommandFlags.DeskewImage | DeskewCommandFlags.DoNotFillExposedArea; 
   command.Run(image); 
 
} 
 
static class LEAD_VARS 
{ 
   public const string ImagesDir = @"C:\LEADTOOLS22\Resources\Images"; 
} 
Requirements

Target Platforms

Help Version 22.0.2023.11.1
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.ImageProcessing.Core Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.