←Select platform

Seed Property

Summary
Gets or sets an integer that represents the starting point for the cloud's randomization process.
Syntax
C#
C++/CLI
Python
public int Seed { get; set; } 
public: 
property int Seed { 
   int get(); 
   void set (    int ); 
} 
Seed # get and set (CloudsCommand) 

Property Value

An integer that represents the starting point for the cloud's randomization process.

Remarks

Possible values are any values greater than or equal to 0.

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.