System.Drawing.Bitmap
Inherits from
System.Drawing.Image
, not from
System.Web.UI.Controls.Image
You cannot convert to the control
Image simply by stating that the
Bitmap is an
Image.
If you intended to do this for an Image (that is a
System.Drawing.Image)
that would simply be:
Bitmap bm = new Bitmap("yourBitmap.jpg");
Image img = (Image)bm;
So you see that what you are trying to do is impossible, what you could try to do is show the bitmap in the Image control ... was that what you were trying?, if so, try something like this:
ImageSourceConverter c = new ImageSourceConverter();
this.picture.Source = (ImageSource)c.ConvertFrom(bmp);
Good luck,
Edo