Visual Basic (Declaration) | |
---|---|
Public Function New( _ ByVal seed As Integer, _ ByVal frequency As Integer, _ ByVal iteration As Integer, _ ByVal opacity As Integer, _ ByVal backColor As RasterColor, _ ByVal perlinColor As RasterColor, _ ByVal xCircle As Integer, _ ByVal yCircle As Integer, _ ByVal freqLayout As Integer, _ ByVal denLayout As Integer, _ ByVal perlinFlags As NoiseLayoutType _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public PerlinCommand( int seed, int frequency, int iteration, int opacity, RasterColor backColor, RasterColor perlinColor, int xCircle, int yCircle, int freqLayout, int denLayout, NoiseLayoutType perlinFlags ) |
C++/CLI | |
---|---|
public: PerlinCommand( int seed, int frequency, int iteration, int opacity, RasterColor backColor, RasterColor perlinColor, int xCircle, int yCircle, int freqLayout, int denLayout, NoiseLayoutType perlinFlags ) |
Parameters
- seed
- Value that represents the initial seeding value for the pseudo-randomization process. Use 0 for automatic seeding. If other parameters are kept the same, each seed value always produces the same effect. Each seed value produces an effect different from all of the other seed values. Possible values are 0 or greater.
- frequency
- Value that represents the frequency component for both the x and y axis. Possible values range from 0 to 16. No noise is created if the value is 0. Increasing this value increases the noise.
- iteration
- Value that represents the number of iterations that will be calculated. Possible values range from 0 to 8. No noise is created if the value is 0. Increasing this value increases the detail in the noise, as well as computation time.
- opacity
- Value that represents the percentage to be used when combining the original image with the noise. Possible values range from 0 through 100. A value of 0 indicates that no noise is being used and a value of 100 represents a mix of noise and image.
- backColor
- The RasterColor value that represents the background color.
- perlinColor
- The RasterColor value that represents the Perlin noise color.
- xCircle
- The x coordinate, in pixels and in image coordinates, for the center point of the concentric circles. Possible values range from 0 to the height of the image. This parameter is only used if the PF_Circle flag is set.
- yCircle
- The y coordinate, in pixels and in image coordinates, for the center point of the concentric circles. Possible values range from 0 to the height of the image. This parameter is only used if the PF_Circle flag is set.
- freqLayout
- Value used to control the frequency of the circles or lines to be created for the noise image. Valid values range from 0 to 100. Increase this value to increase the number of circles or lines drawn.
- denLayout
- Value that represents the density of the layout for the produced noise. Possible values range from 0 through 100. When using a low denLayout value, the noise will appear with light color.
- perlinFlags
- Flags that indicate how to apply the effect, and which layout pattern to use for the noise.
Run the PerlinCommand on an image and applies the Perlin filter.
Visual Basic | Copy Code |
---|---|
Public Sub PerlinConstructorExample() |
C# | Copy Code |
---|---|
public void PerlinConstructorExample() |
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family