How to convert Bitmap to Image

后端 未结 5 1085
我寻月下人不归
我寻月下人不归 2021-01-01 22:17

I am using the OpenCV library for image processing.

I want to convert a System.Drawing.Bitmap to an Image. How can I do th

5条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-01 23:20

    The constructor for Image no longer accepts Bitmap as parameter. I had to use the following code for Emgu version 4.3:

    Image emguImage = bitmap.ToImage();
    

    I found it on github and in patch notes. The official documentation tutorials were not properly updated.

提交回复
热议问题