Question

I need to convert a bitmap image to a Image format image so that I can display it in my image box. Please help thanks!

Was it helpful?

Solution

It is also possible to create an Image from a .Net Bitmap object. The code in C# would be

 Image<Bgr, Byte> img = new Image<Bgr, Byte>(bmp); //where bmp is a Bitmap

You can find the official documnetation here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top