Leadtools.ImageProcessing.Core Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.12.10
Angle Property
See Also  Example
Leadtools.ImageProcessing.Core Namespace > DeskewCheckCommand Class : Angle Property




Amount by which the command rotates the image.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property Angle As Integer
Visual Basic (Usage)Copy Code
Dim instance As DeskewCheckCommand
Dim value As Integer
 
value = instance.Angle
C# 
public int Angle {get;}
Managed Extensions for C++ 
public: __property int get_Angle();
C++/CLI 
public:
property int Angle {
   int get();
}

Return Value

Amount by which the command rotates the image. The amount of rotation is expressed in hundredths of degrees. For example, 500 means 5 degrees clockwise. Valid values range from -2000 through 2000. The default value is 0.

Example

Visual BasicCopy Code
ImageProcessing.Core.DeskewCheckCommand.Angle
   Public Sub AnglePropertyExample()
      RasterCodecs.Startup()
      Dim codecs As New RasterCodecs()
      codecs.ThrowExceptionsOnInvalidImages = True

      Dim leadImage As RasterImage = codecs.Load("C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\Clean.tif")

      ' Prepare the command
      Dim command As DeskewCheckCommand
      command = New DeskewCheckCommand
      'Deskew the image.
      command.Flags = DeskewCheckCommandFlags.DeskewImage Or DeskewCheckCommandFlags.FillExposedArea Or DeskewCheckCommandFlags.UseHighSpeedRotate Or DeskewCheckCommandFlags.UseLineDetectionToDeskewCheck
      command.FillColor = New RasterColor(255, 255, 0)
      command.Run(leadImage)

      MessageBox.Show("The Angle = " & command.Angle.ToString())

      RasterCodecs.Shutdown()
   End Sub
C#Copy Code
ImageProcessing.Core.DeskewCheckCommand.Angle 
      public void AnglePropertyExample() 
      { 
         // Load an image 
         RasterCodecs.Startup(); 
         RasterCodecs codecs = new RasterCodecs(); 
         codecs.ThrowExceptionsOnInvalidImages = true; 
 
         RasterImage image = codecs.Load(@"C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\Clean.tif"); 
 
         // Prepare the command 
         DeskewCheckCommand command = new DeskewCheckCommand(); 
         //Deskew the image. 
         command.Flags = DeskewCheckCommandFlags.DeskewImage | DeskewCheckCommandFlags.FillExposedArea | DeskewCheckCommandFlags.UseHighSpeedRotate | DeskewCheckCommandFlags.UseLineDetectionToDeskewCheck; 
         command.FillColor = new RasterColor(255, 255, 255); 
 
         command.Run(image); 
 
         MessageBox.Show("The Angle = " + command.Angle.ToString()); 
 
         RasterCodecs.Shutdown(); 
      }

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also