C# Class AForge.Imaging.Textures.TextileTexture

Textile texture.

The texture generator creates textures with effect of textile.

The generator is based on the Perlin noise function.

Sample usage:

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

Result image:

Inheritance: ITextureGenerator
Datei anzeigen Open project: holisticware-admin/MonoVersal.AForgeNET

Public Methods

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

Generate texture.

Generates new texture of the specified size.

Reset ( ) : void

Reset generator.

Regenerates internal random numbers.

TextileTexture ( ) : System

Initializes a new instance of the TextileTexture class.

Method Details

Generate() public method

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.
return ].float[

Reset() public method

Reset generator.
Regenerates internal random numbers.
public Reset ( ) : void
return void

TextileTexture() public method

Initializes a new instance of the TextileTexture class.
public TextileTexture ( ) : System
return System