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
Parameters
- bitmap
- Type: System.DrawingBitmap
Bitmap to copy into new Image.
Return Value
Type: ImageNew 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
Exception | Condition |
---|---|
NotImplementedException | Bitmap pixel format not supported. |
InsufficientMemoryException | The new image buffer could not be created. |
CvbException | If image format could not be cloned. |
See Also