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
What is wrong ?
Ragards,
André.
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é.