Tim Van Wassenhove home

Earlier today i decided to toy around with my webcam. A couple of websearches later i ended up at WIA (Windows Image Acquisition). I found a couple of articles (eg: here and here) that showed how to capture images. I wanted to display the caputered image in a PictureBox. Unfortunately everybody seems to save the WIA.ImageFile to a file and then load the imagefile into a PictureBox. It’s obvious that i don’t want to save the image into a file first. Here is my workaround

// Load the ImageFile into a PictureBox
pbImage.Image = Image.FromStream(new MemorySteam((byte[]) imgf.FileData.get_BinaryData()));