Forums
How to capture a frame ? - Printable Version

+- Forums (http://mitov.com/forum)
+-- Forum: FireMonkey Components (/forum-5.html)
+--- Forum: VideoLab (/forum-18.html)
+--- Thread: How to capture a frame ? (/thread-221.html)



How to capture a frame ? - andre - 03-27-2012 10:50 PM

Hi,

I can’t figure out how to save a picture when a motion detection occurs.

I use a TVLDSCapture, connected to a TVLImageDisplay and a TVLMotionDetect connected to another TVLImageDisplay.

When a motion occurs, the second TVLImageDIsplay do display the picture.

So I try to use MakeScreenshot method on both TVLImageDisplay to save this picture, but all that I get is a black BMP.

Example where imgMotion is the image connected to OutputPin of the TVLMotionDetec
Code:
imgMotion.MakeScreenshot.SaveToFile('c:\imgMotion.bmp');


What is wrong ?

Ragards,
André.