Gets or sets a value that represents the angle, in hundredths of degrees.
public int Angle {get; set;}Public Property Angle As Integerpublic int Angle {get; set;}get_Angle();set_Angle(value);Object.defineProperty('Angle');
Value that represents the angle, in hundredths of degrees. This property is used if the Flags property is set to FunctionalLightCommandFlags.Trigonometry or to FunctionalLightCommandFlags.Freehand. Valid values for this property range from -18000 to 18000. This value is divided internally by 100.
Run the FunctionalLightCommand on an image.
Imports LeadtoolsImports Leadtools.CodecsImports Leadtools.ImageProcessing.SpecialEffectsImports Leadtools.ImageProcessing.Effects<TestMethod()> _Public Sub AnglePropertyExample()Dim codecs As New RasterCodecs()codecs.ThrowExceptionsOnInvalidImages = TrueDim leadImage As RasterImage = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir, "IMAGE1.CMP"))' Prepare the commandDim userPoint() As LeadPointReDim userPoint(3)'Apply the filteruserPoint(0).X = 0userPoint(0).Y = 0userPoint(1).X = 3userPoint(1).Y = 10userPoint(2).X = 9userPoint(2).Y = -10userPoint(3).X = 12userPoint(3).Y = 0Dim curve() As IntegerReDim curve(12)EffectsUtilities.GetCurvePoints(curve, userPoint, CurvePointsType.Linear)Dim command As FunctionalLightCommand = New FunctionalLightCommandcommand.RedAmplitude = 90command.GreenAmplitude = 50command.BlueAmplitude = 75command.Angle = 4500command.PhaseShift = 3000command.Frequency = 3000command.Buffer = curvecommand.Flags = FunctionalLightCommandFlags.Freehand Or FunctionalLightCommandFlags.Addition' Apply the linear lighting effect.command.Run(leadImage)codecs.Save(leadImage, Path.Combine(LEAD_VARS.ImagesDir, "Result.jpg"), RasterImageFormat.Jpeg, 24)End SubPublic NotInheritable Class LEAD_VARSPublic Const ImagesDir As String = "C:\Users\Public\Documents\LEADTOOLS Images"End Class
using Leadtools;using Leadtools.Codecs;using Leadtools.ImageProcessing.SpecialEffects;using Leadtools.ImageProcessing.Effects;public void AnglePropertyExample(){// Load an imageRasterCodecs codecs = new RasterCodecs();codecs.ThrowExceptionsOnInvalidImages = true;RasterImage image = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir, "IMAGE1.CMP"));// Prepare the commandLeadPoint[] userPoint = new LeadPoint[4];//Apply the filteruserPoint[0].X = 0;userPoint[0].Y = 0;userPoint[1].X = 3;userPoint[1].Y = 5;userPoint[2].X = 9;userPoint[2].Y = 7;userPoint[3].X = 12;userPoint[3].Y = 10;int[] curve = new int[13];EffectsUtilities.GetCurvePoints(curve, userPoint, CurvePointsType.Linear);FunctionalLightCommand command = new FunctionalLightCommand();command.RedAmplitude = 90;command.GreenAmplitude = 50;command.BlueAmplitude = 75;command.Angle = 4500;command.PhaseShift = 3000;command.Frequency = 5000;command.Buffer = curve;command.Flags = FunctionalLightCommandFlags.Freehand | FunctionalLightCommandFlags.Addition;// Apply the linear lighting effect.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:\Users\Public\Documents\LEADTOOLS Images";}


|   | 
                            Products |
                            Support |
                            Feedback:  Angle Property (FunctionalLightCommand) - Leadtools.ImageProcessing.SpecialEffects  |
                            Introduction |
                            Help Version 19.0.2017.3.21
                         | 






Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.