←Select platform

Frequency Property

Summary
Gets or sets the value that controls the amount of cloud texture inside the image.
Syntax
C#
C++/CLI
Python
public int Frequency { get; set; } 
public: 
property int Frequency { 
   int get(); 
   void set (    int ); 
} 
Frequency # get and set (CloudsCommand) 

Property Value

Amount of cloud texture inside the image.

Remarks

Possible values range from 0 to 16. A value of 0 means no cloud texture will be created, while a value of 16 means the maximum concentration of clouds will be created.

Example
C#
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.ImageProcessing.SpecialEffects; 
 
 
public void CloudsCommandExample() 
{ 
   // Load an image 
   RasterCodecs codecs = new RasterCodecs(); 
   codecs.ThrowExceptionsOnInvalidImages = true; 
 
   RasterImage image = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir, "ImageProcessingDemo\\Image1.jpg")); 
 
   // Prepare the command 
   CloudsCommand command = new CloudsCommand(); 
   command.Seed = 1000; 
   command.Frequency = 4; 
   command.Density = 10; 
   command.Opacity = 10; 
   command.BackColor = new RasterColor(255, 255, 255); 
   command.CloudsColor = new RasterColor(0, 0, 0); 
   command.Type = CloudsCommandType.Difference; 
   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:\LEADTOOLS23\Resources\Images"; 
} 
Requirements

Target Platforms

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

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