|
Thanks for reply Amin.
Sorry, but I did'nt understood what you want to say. I tried your solution. The callback example program you have stated in your reply is for video replay using ltmmPlay control. I am not talking about replay anyway. I am talking about live capture using ltmmCapture control
I would like to explain my scenario in details.
I am capturing AVI in ltmmCapture_Mode_Video using ltmmCapture control. Capturing process is now in progress. At this time, I want to capture live image from ltmmCapture control without interupting video capture. The video capturing process will go on after the image captured without break.
LEADTools have different mode for capturing image i. e. ltmmCapture_Mode_Still. But applying this mode stops capture graph. I donot want to stop the graph. In other words, I want the functionality of ltmmCapture_Mode_Video and ltmmCapture_Mode_Still at same time.
For this purpose, currently I am taking screen shot of ltmmCapture control passing the handle of VideoWindow. But the following problems are with this method :-
- It is platform dependent. With WindosXP for some display settings, image donot get captured at all. Some times, it gives white or black image
- It is not giving satisfactory image quality.
- It also donot give you real capture size. eg. You are capturing video with 752 X 576 capture size. Size of your ltmmCapture control is 100 X 150 and size of your video window is 100 X 100. Then captured image size will be 100 X 100 instead of 752 X 576.
- If any other window overlaps ltmmCapture control, that window also appear in image.
I want real time live image with real image properties set to ltmmCapture control (Bits per pixel, Capture Size etc) while capturing Video.
Please give some details of your logic like which objects, methods and properties to use, which help file to refer, and other helpful comments ? It will most welcome if you provide me with sample code.
Hope you got my problem.
Waiting for reply.
Amit
|