C# Class Accord.Imaging.Textures.CloudsTexture

Clouds texture.

The texture generator creates textures with effect of clouds.

The generator is based on the Perlin noise function.

Sample usage:

// create texture generator CloudsTexture textureGenerator = new CloudsTexture( ); // generate new texture float[,] texture = textureGenerator.Generate( 320, 240 ); // convert it to image to visualize Bitmap textureImage = TextureTools.ToBitmap( texture );

Result image:

Inheritance: ITextureGenerator
Afficher le fichier Open project: accord-net/framework

Méthodes publiques

Méthode Description
CloudsTexture ( ) : Accord.Math

Initializes a new instance of the CloudsTexture class.

Generate ( int width, int height ) : ].float[

Generate texture.

Generates new texture of the specified size.

Reset ( ) : void

Reset generator.

Regenerates internal random numbers.

Method Details

CloudsTexture() public méthode

Initializes a new instance of the CloudsTexture class.
public CloudsTexture ( ) : Accord.Math
Résultat Accord.Math

Generate() public méthode

Generate texture.
Generates new texture of the specified size.
public Generate ( int width, int height ) : ].float[
width int Texture's width.
height int Texture's height.
Résultat ].float[

Reset() public méthode

Reset generator.
Regenerates internal random numbers.
public Reset ( ) : void
Résultat void