←Select platform

Angle Property

Summary
Gets or sets the angle of rotation.
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 (HalfToneCommand) 

Property Value

The angle of rotation, expressed in hundredths of degrees. A value of 0 produces a horizontal halftone pattern. This property specifies the number of degrees to change the pattern. Positive values rotate the pattern clockwise; negative values rotate the pattern counterclockwise. This value is ignored if the selected halftone pattern is HalfToneCommandType.Rectangle, HalfToneCommandType.Circular, HalfToneCommandType.Random or HalfToneCommandType.UserDefined.

Example
C#
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.ImageProcessing.Core; 
 
public void HalfToneCommandExample() 
{ 
   // Load an image 
   RasterCodecs codecs = new RasterCodecs(); 
   codecs.ThrowExceptionsOnInvalidImages = true; 
 
   RasterImage image = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir, "sample5.cmp")); 
 
   // Prepare the command 
   HalfToneCommand command = new HalfToneCommand(); 
   command.Angle = 0; 
   command.Dimension = 2; 
   command.Type = HalfToneCommandType.View; 
   //Halftone the image. 
   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.