C# 클래스 AForge.Imaging.Textures.TextureTools

Texture tools.

The class represents collection of different texture tools, like converting a texture to/from grayscale image.

Sample usage:

// 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 );
파일 보기 프로젝트 열기: holisticware-admin/MonoVersal.AForgeNET

공개 메소드들

메소드 설명
FromBitmap ( Bitmap image ) : ].float[

Convert grayscale bitmap to texture.

FromBitmap ( BitmapData imageData ) : ].float[

Convert grayscale bitmap to texture

FromBitmap ( UnmanagedImage image ) : ].float[

Convert grayscale bitmap to texture.

ToBitmap ( float texture ) : Bitmap

Convert texture to grayscale bitmap.

비공개 메소드들

메소드 설명
TextureTools ( ) : System

메소드 상세

FromBitmap() 공개 정적인 메소드

Convert grayscale bitmap to texture.
Only grayscale (8 bpp indexed images) are supported.
public static FromBitmap ( Bitmap image ) : ].float[
image System.Drawing.Bitmap Image to convert to texture.
리턴 ].float[

FromBitmap() 공개 정적인 메소드

Convert grayscale bitmap to texture
Only grayscale (8 bpp indexed images) are supported.
public static FromBitmap ( BitmapData imageData ) : ].float[
imageData System.Drawing.Imaging.BitmapData Image data to convert to texture
리턴 ].float[

FromBitmap() 공개 정적인 메소드

Convert grayscale bitmap to texture.
Only grayscale (8 bpp indexed images) are supported.
public static FromBitmap ( UnmanagedImage image ) : ].float[
image UnmanagedImage Image data to convert to texture.
리턴 ].float[

ToBitmap() 공개 정적인 메소드

Convert texture to grayscale bitmap.
public static ToBitmap ( float texture ) : Bitmap
texture float Texture to convert to bitmap.
리턴 System.Drawing.Bitmap