PDA

View Full Version : Snapping images



jakovn
September 28, 2008, 22:21:48
I want at exact moments to snap image and process it; for example when user clicks a button
I started modifying project that wizard creates (that inverts the image) and I changed

setSnapMode ( true )
and I try calling snapImages function from the button but nothing happens, no image is displayed
Where am I wrong?

Stefan Geissler
September 29, 2008, 08:34:49
Hi,

The created project that inverts the images displays the snapped image.

I think, you kept the CListener object attached to the grabber object.
I think, you set the m_pSink->snapmode to "true"

Then the CListener::frameReady should be called, if you have called m_pSink->snapImages().

jakovn
September 29, 2008, 09:08:54
Thanks! It works now!

Stefan Geissler
September 29, 2008, 09:20:56
Thank you for the feedback!