C# 클래스 Accord.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:

상속: ITextureGenerator
파일 보기 프로젝트 열기: accord-net/framework

공개 메소드들

메소드 설명
Generate ( int width, int height ) : ].float[

Generate texture.

Generates new texture of the specified size.

LabyrinthTexture ( ) : Accord.Math

Initializes a new instance of the LabyrinthTexture class.

Reset ( ) : void

Reset generator.

Regenerates internal random numbers.

메소드 상세

Generate() 공개 메소드

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

LabyrinthTexture() 공개 메소드

Initializes a new instance of the LabyrinthTexture class.
public LabyrinthTexture ( ) : Accord.Math
리턴 Accord.Math

Reset() 공개 메소드

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