2012-11-14 72 views
0

我已經成功地在控件上加載圖像,只需在運行時右鍵單擊'選擇「加載圖像」選項。在EmguCV的Imagebox中加載圖像,該死的IImage

我想知道如果有一種方式來加載它專門傳遞Image對象, 因爲當我嘗試這樣做,因爲我通常會,設置它像imagebox.Image = (...) 因爲imagebox.Image是「IIMAGE」對象會給出錯誤。

任何提示? 謝謝:)

+0

顯示代碼和準確的例外。 – CodeCaster

回答

2

你可以試試這個:

Image<BGR, Byte> rstImg = new Image<BGR, Byte>(imageBox.Image.Bitmap); 
imageBox.Image = rstImg;