PDA

View Full Version : Image Buffer



rjoiner
March 12, 2009, 05:16:03
Can the ImageActiveBuffer be used with the System.Drawing class in .Net

I would like to capture an image from the buffer and resize it,
and apply things like SmoothingMode, InterpolationMode, CompositingQuality
from System.Drawing.Graphics

I can do all this from an image file, but wanted to save a step and create and manipulate an image from the buffer.

Thanks

Robert

Stefan Geissler
March 12, 2009, 08:41:32
Hi Robert,

Yes, it can. It has a System.Drawing.Bitmap property. Thus you copy it into a bitmap:


icImagingControl1.MemorySnapImage();
Bitmap bmp = icImagingControl1.ImageActiveBuffer.Bitmap;