Bitmap to Picturebox

This question is related to This question. At the end, user does something like

Bitmap bmp = (Bitmap)Bitmap.FromStream(new MemoryStream(buffer,0,total));

Now, I want to display this image in PictureBox. So, what should be at the place of ??? below

pictureBox1.Image = ???

Answers


pictureBox1.Image = bmp;

That bmp is the image (Bitmap inhereits from Image) so you shouldn't need to do anything special.


Need Your Help

Mono Project: Why is mono faster than .NET?

c# .net mono

I am surprised to observe that mono is faster than .NET. Does anyone know why is it so? I was expecting mono to be slower than .NET but wasnt the case atleast with my experiments.