How to convert Bitmap to Image
This is what has worked for me:
var codeBitmap = new Bitmap(your_info);
Image image = (Image)codeBitmap;
Check up the namespaces.
System.Drawing.Image
compatible with bitmap, System.Window.Control.Image
- not!
A Bitmap
is an Image
. It inherits from the Image
class.
From MSDN:
[SerializableAttribute]
[ComVisibleAttribute(true)]
public sealed class Bitmap : Image