Click or drag to resize
Accord.NET (logo)

ComplexImageFromBitmap Method (Bitmap)

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(
	Bitmap image
)
Request Example View Source

Parameters

image
Type: System.DrawingBitmap
Source grayscale bitmap (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