Wood texture.

Namespace:  AForge.Imaging.Textures
Assembly:  AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public class WoodTexture : ITextureGenerator

Remarks

The texture generator creates textures with effect of rings on trunk's shear. The Rings property allows to specify the desired amount of wood rings.

The generator is based on the Perlin noise function.

Sample usage:

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

Result image:

Inheritance Hierarchy

System..::.Object
  AForge.Imaging.Textures..::.WoodTexture

See Also