C# Class AForge.Imaging.Textures.LabyrinthTexture

Labirinth texture.

The texture generator creates textures with effect of labyrinth.

The generator is based on the Perlin noise function.

Sample usage:

// create texture generator LabyrinthTexture textureGenerator = new LabyrinthTexture( ); // 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: holisticware-admin/MonoVersal.AForgeNET

Méthodes publiques

Méthode Description
Generate ( int width, int height ) : ].float[

Generate texture.

Generates new texture of the specified size.

LabyrinthTexture ( ) : System

Initializes a new instance of the LabyrinthTexture class.

Reset ( ) : void

Reset generator.

Regenerates internal random numbers.

Method Details

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[

LabyrinthTexture() public méthode

Initializes a new instance of the LabyrinthTexture class.
public LabyrinthTexture ( ) : System
Résultat System

Reset() public méthode

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