c# - convert type 'System.Drawing.Bitmap' to 'Emgu.CV.IImage' -


i try convert bitmap image (imagebox) of emgucv shows me problem cannot implicitly convert type 'system.drawing.bitmap' 'emgu.cv.iimage' this.captureimagebox.image = val; using emgucv v3

void setpic(bitmap val)         {             if (val != null)             {                  this.captureimagebox.image = val;             }         } 

severity code description project file line suppression state error cs0029 cannot implicitly convert type 'system.drawing.bitmap' 'emgu.cv.iimage'

the ctor takes in bitmap.

this.captureimagebox.image = new image<bgr, byte>(val);  

Comments