VintaSoft Imaging .NET SDK 12.4: 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; }
    
    
    [DefaultValue(0)]
    [Description("The maximum possible angle (clockwise and counterclockwise), in degrees, detected by command.
    Valid values are from 0 to 90.")]
    public: __property System.Int32 get_MaxAngle();
    public: __property void set_MaxAngle(
    System.Int32 value
    );
    [DefaultValue(0)]
    [Description("The maximum possible angle (clockwise and counterclockwise), in degrees, detected by command.
    Valid values are from 0 to 90.")]
    public:
    property System.Int32 MaxAngle { System.Int32 get(); void set(System.Int32 value); }

    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 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also