VintaSoft Imaging .NET SDK 15.2: Documentation for .NET developer
Vintasoft.Imaging.ImageProcessing.Document Namespace / DeskewCommand Class / MaxAngle Property
Syntax Exceptions Requirements SeeAlso
In This Topic
MaxAngle Property (DeskewCommand)
In This Topic
Gets or sets the maximum possible angle (clockwise and counterclockwise), in degrees, detected by command.
Syntax
'Declaration

<DefaultValueAttribute(0)>
<DescriptionAttribute("The maximum possible angle (clockwise and counterclockwise), in degrees, detected by command.
Valid values are from 0 to 90.")>
Public Property MaxAngle As System.Int32

[DefaultValue(0)]
[Description("The maximum possible angle (clockwise and counterclockwise), in degrees, detected by command.
Valid values are from 0 to 90.")]
public System.Int32 MaxAngle { get; set; }

Property Value

Valid values are from 0 to 90. Default value is 0.

0 means that command will detect the maximum possible angle automatically and use the following algorithm:
  • Command will use 45 degrees as the maximum possible angle and will try to determine the rotation angle.
  • Command will return the result if result is NOT close to 45 degrees or -45 degrees.
  • Command will use 90 degrees as the maximum possible angle and AGAIN will try to determine the rotation angle if result on previous step is close to 45 degrees or -45 degrees.
Exceptions
ExceptionDescription
Thrown if value is less than zero or more than 90.
Requirements

Target Platforms: .NET 11; .NET 10; .NET 9; .NET 8; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also