Click or drag to resize
Accord.NET (logo)

ComplexImageFromBitmap Method (BitmapData)

Create complex image from grayscale bitmap.

Namespace:  Accord.Imaging
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.8.0
Syntax
public static ComplexImage FromBitmap(
	BitmapData imageData
)
Request Example View Source

Parameters

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

Return Value

Type: ComplexImage
Returns an instance of complex image.
Exceptions
ExceptionCondition
UnsupportedImageFormatExceptionThe source image has incorrect pixel format.
InvalidImagePropertiesExceptionImage width and height should be power of 2.
See Also