Perlin noise was developed in the 1980s by Ken Perlin, who was working with procedural textures. He wanted to create a function that would appear to be random, but that when supplied the same input would always produce the same output, and that would feature smooth transitions between values. Ken Perlin would later win an Oscar for this work.
The Leadtools.ImageProcessing.SpecialEffects.PerlinCommand command uses a pseudo-random number generator in order to create a Perlin noise, and then procedurally transforms that noise into a texture. To use the Leadtools.ImageProcessing.SpecialEffects.PerlinCommand command, perform the following steps:
Use the Leadtools.ImageProcessing.SpecialEffects.PerlinCommand command to create a Perlin noise. Depending upon the options used, the noise can be laid out in circles, lines or randomly. The effect can be applied by itself, combined with another image using an opacity value, or applied as a difference, The following figures demonstrate the command's use. To generate these figures, the following values were used:
Leadtools.ImageProcessing.SpecialEffects.Seed = 0; |
Leadtools.ImageProcessing.SpecialEffects.Frequency = 16; |
Leadtools.ImageProcessing.SpecialEffects.Iteration = 8; |
Leadtools.ImageProcessing.SpecialEffects.Opacity = 75; |
Leadtools.ImageProcessing.SpecialEffects.Backcolor = new RasterColor (0, 0, 0); |
Leadtools.ImageProcessing.SpecialEffects.PerlinColor = new RasterColor (255, 0, 0); |
Leadtools.ImageProcessing.SpecialEffects.XCircle= image.Width / 2; |
Leadtools.ImageProcessing.SpecialEffects.YCircle = image.Height / 2; |
Leadtools.ImageProcessing.SpecialEffects.FreqLayout = 100; |
Leadtools.ImageProcessing.SpecialEffects.DenLayout = 1; |
Leadtools.ImageProcessing.SpecialEffects.PerlinFlags.NoiseLayoutType = See descriptions |
The following example is using the PF_Pure and PF_Circle NoiseLayoutType values:
The following example is using the PF_Combine and PF_Circle NoiseLayoutType values:
.
The following example is using the PF_Difference and PF_Circle NoiseLayoutType values:
The following example is using the PF_Pure and PF_Line NoiseLayoutType values::
The following example is using the PF_Combine and PF_Line NoiseLayoutType values:
The following example is using the PF_Difference and PF_Line NoiseLayoutType values:
The following example is using the PF_Pure and PF_Random NoiseLayoutType values:
The following example is using the PF_Combine and PF_Random NoiseLayoutType values:
The following example is using the PF_Difference and PF_Random NoiseLayoutType values:
The Leadtools.ImageProcessing.SpecialEffects.CloudsCommand command also makes use of Perlin noise.
Products |
Support |
Feedback: Using The PerlinCommand command |
Introduction |
Help Version 19.0.2017.6.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.