Create complex image from grayscale bitmap.
Namespace:
AForge.ImagingAssembly: 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
| Exception | Condition |
|---|---|
| AForge.Imaging..::.UnsupportedImageFormatException | The source image has incorrect pixel format. |
| AForge.Imaging..::.InvalidImagePropertiesException | Image width and height should be power of 2. |