←Select platform

Angle Property

Summary
Gets or sets a value that specifies the edge detector direction, in hundredths of degrees.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public int Angle { get; set; } 
@property (nonatomic, assign) NSInteger angle; 
public int getAngle(); 
public void setAngle( 
   int intValue 
); 
public: 
property int Angle { 
   int get(); 
   void set (    int ); 
} 
Angle # get and set (DirectionEdgeStatisticalCommand) 

Property Value

Value that specifies the edge detector direction, in hundredths of degrees. Valid values range from -18000 through 18000. Positive values are produced by counterclockwise rotation above the horizon and negative values are produced by clockwise rotation below the horizon. This value is divided internally by 100.

Example
C#
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.ImageProcessing.Effects; 
 
 
public void DirectionEdgeStatisticalCommandExample() 
{ 
   // Load an image 
   RasterCodecs codecs = new RasterCodecs(); 
   codecs.ThrowExceptionsOnInvalidImages = true; 
 
   RasterImage image = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir, "ImageProcessingDemo\\NaturalFruits.jpg")); 
 
   // Prepare the command 
   DirectionEdgeStatisticalCommand command = new DirectionEdgeStatisticalCommand(); 
 
   command.Dimension = 15; 
   command.Threshold = 128; 
   command.Angle = 4500; 
   command.EdgeColor = new RasterColor(255, 255, 255); 
   command.BackGroundColor = new RasterColor(0, 0, 0); 
 
   //Find the edges in the image. 
   command.Run(image); 
   codecs.Save(image, Path.Combine(LEAD_VARS.ImagesDir, "Result.jpg"), RasterImageFormat.Jpeg, 24); 
 
} 
 
static class LEAD_VARS 
{ 
   public const string ImagesDir = @"C:\LEADTOOLS22\Resources\Images"; 
} 
Requirements

Target Platforms

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

Leadtools.ImageProcessing.Effects Assembly

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