Create complex image from grayscale bitmap.

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

Syntax

C#
public static ComplexImage FromBitmap(
	BitmapData imageData
)

Parameters

imageData
Type: System.Drawing.Imaging..::.BitmapData
Source image data (8 bpp indexed).

Return Value

Returns an instance of complex image.

Exceptions

ExceptionCondition
AForge.Imaging..::.UnsupportedImageFormatExceptionThe source image has incorrect pixel format.
AForge.Imaging..::.InvalidImagePropertiesExceptionImage width and height should be power of 2.

See Also