PDA

View Full Version : using imagingcontrol in c#



Unregistered
September 5, 2002, 23:46:11
I am wanting to use your imaging control in visual studio .net.

How do I get a still image from a video cam(web cam) into a c# Bitmap object?

I have tried using MemoryGetDib() and other methods but I cant seem to assign the DIB to an image.

Do you have any examples in c# of how I might do this?

Thanks Dave Sollock


This message was originally posted by dave sollock in the old IC Imaging Control Support Forum.

Unregistered
September 9, 2002, 10:16:03
Hello Dave,

Currently the direct way does not work. There is a work around available:
Save the image to a BMP file and load it with the Bitmap object:

private void cmdSnapFrame_Click(object sender, System.EventArgs e)
{
axICImagingControl1.MemorySnapImage();
axICImagingControl1.MemorySaveImage( "image.bmp" );

Image bmpObj = Image.FromFile("image.bmp");
picShowSnap.Image = bmpObj;
}

picShowSnap is a picture box.
bmpObj is a System.Drawing.Image object.

Best regards
Stefan
IC Support


This message was originally posted by Stefan in the old IC Imaging Control Support Forum.