Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Friday, July 1, 2005 10:05:31 AM(UTC)

jluis  
jluis

Groups: Registered
Posts: 1


    Does anyone have an example of how to use this fuction???

 

JLuis

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Monday, July 4, 2005 7:27:30 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

Hello,

 

The following is a small VB.6 tutorial that shows how to use the

1. Start Visual Basic.

2. Add the LEAD Multi-Media controls to your project. On the Project pull-down menu, use the Components option, and select the LEAD Multi-Media Library (14).

3. Select the ltmmCaptureCtrl Control, and add it to your form, Size and position the control, as you want it to appear at run time.

4. Handle the Form’s Load event, and code Form_Load sub as follows:

Private Sub Form_Load()

   'select first video device

   ltmmCaptureCtrl1.VideoDevices.Selection = 0

   'use preview

   ltmmCaptureCtrl1.Preview = True

   ltmmCaptureCtrl1.TargetFile = "c:\2.avi"

End Sub

 

5. Add a button and name it as follows:

Name  Caption

btnTakePic  Take SnapShot

 

6. Handle the btnStartCapture Click event, and code btnStartCapture_Click procedure as follows:

Private btnTakePic_Click()

ltmmCaptureCtrl1.StartCapture (ltmmCapture_Mode_Still)

ltmmCaptureCtrl1.SaveStillBitmap "C:\StillBitmap.cmp", ltmmCapture_StillFormat_CMP, 2, 0, -1

ltmmCaptureCtrl1.StopCapture

End Sub

 

7. Run your program to test it.

8. Save this project to use it as initial point for other tutorials.

 

Regards,

Maen Badwan

LEADTOOLS Technical Support

 
#3 Posted : Wednesday, October 4, 2006 7:06:56 AM(UTC)

Puns  
Puns

Groups: Registered
Posts: 6


Hello

Will the avi file saved, be run through windows media player?  I used this code to savestillbitmap, I am not able to run/open the saved file

Thanks

Puns

 
#4 Posted : Saturday, October 7, 2006 10:28:05 PM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

Hello,

To get the correct AVI file you need to do the following:
- Set the ltmmCaptureCtrl.TargetFormat Property to ltmmCapture_TargetFormat_Avi.
- Set the ltmmCaptureCtrl1.TargetFile to the location of the AVI file.
- Call the ltmmCaptureCtrl1.StartCapture method as follows:
+---------------------------+
ltmmCaptureCtrl1.StartCapture (ltmmCapture_Mode_VideoAndAudio)
+---------------------------+
- Stop the capture by calling the ltmmCaptureCtrl.StopCapture Method.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.139 seconds.