Marble 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 MarbleTexture : ITextureGenerator

Remarks

The texture generator creates textures with effect of marble. The XPeriod and YPeriod properties allow to control the look of marble texture in X/Y directions.

The generator is based on the Perlin noise function.

Sample usage:

CopyC#
// create texture generator
MarbleTexture textureGenerator = new MarbleTexture( );
// 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..::.MarbleTexture

See Also