DrawingExtensionsToImage Method

CVB.Net Documentation
Creates a new Image and copies the data from the given bitmap.

Namespace:  Stemmer.Cvb.Extensions
Assembly:  Stemmer.Cvb.Extensions (in Stemmer.Cvb.Extensions.dll) Version: 14.0.0.0
Syntax

public static Image ToImage(
	this Bitmap bitmap
)

Parameters

bitmap
Type: System.DrawingBitmap
Bitmap to copy into new Image.

Return Value

Type: Image
New Image object.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Bitmap. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions

ExceptionCondition
NotImplementedExceptionBitmap pixel format not supported.
InsufficientMemoryExceptionThe new image buffer could not be created.
CvbExceptionIf image format could not be cloned.
See Also

Reference