←Select platform

AngleRange Property

Summary
Gets or sets the value that indicates the maximum angle of deskew, in hundredths of degrees. This value is only used when the user set the property Flags to DeskewCommandFlags.UseExtendedDeskew.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public int AngleRange { get; set; } 
@property (nonatomic, assign) NSUInteger angleRange; 
public int getAngleRange(); 
public void setAngleRange( 
   int intValue 
); 
public: 
property int AngleRange { 
   int get(); 
   void set (    int ); 
} 
AngleRange # get and set (DeskewCommand) 

Property Value

Value that indicates the maximum angle of deskew, in hundredths of degrees. Possible values range from 0 to 4500. This value is divided internally by 100. . This value is only used when the user set the property Flags to DeskewCommandFlags.UseExtendedDeskew.

Example
C#
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.ImageProcessing.Core; 
 
public void DeskewExtendedCommandExample() 
{ 
   // 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(); 
   RasterColor fillColor = new RasterColor(0, 0, 0); 
 
 
   command.FillColor = fillColor; 
   command.Flags = DeskewCommandFlags.UseExtendedDeskew | DeskewCommandFlags.DeskewImage | DeskewCommandFlags.DoNotFillExposedArea | DeskewCommandFlags.RotateLinear | DeskewCommandFlags.DocumentImage; 
   command.AngleRange = 2000; 
   command.AngleResolution = 20; 
   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.