View Full Version : Dual Mode Camera

December 2, 2003, 22:01:19
I am having a hard time finding a camera/software that can do the following:

Have streaming video displayed on the desktop in a small window on a form.

The user can then press a button and the camera takes a high resolution picture.

The problem I am having is that the picture gets captured from the low resolution stream instead of having the camera switch to picture mode and getting a high quality image.

Any clues??

Thanks in advance...

Stefan Geissler
December 3, 2003, 15:04:26

With IC Imaging Control you can display the whole live video frame in a CStatic control and resize the frame to the rectangle of the CStatic control. The images, that are saved from the live stream have the full size of the video format, that has been selected.
Assume, cVideoWindow is a CStatic control, you would code as follows:

// Assign the m_cVideoWindow to the grabber. This is the window in the upper right corner.
m_cGrabber.setHWND( m_cVideoWindow.m_hWnd);

// Resize the live video to the size of m_cVideoWindow.
CRect rect;
//Set the new window size
m_cGrabber.setWindowSize(rect.Width(), rect.Height());

To save an image, the code looks like follows:

m_cGrabber.getActiveMemBuffer()->save( “MyImage.bmp” );

A trial version of IC Imaging Control is available at