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 : Tuesday, March 1, 2011 9:31:37 PM(UTC)
kiranvidhate

Groups: Registered
Posts: 20


Hi,

I am using Lead Tools Play Control and need to provide a menu to start video from selected frame positions. The menu will also contain a screen shot from the video of the particular frame position.

So, is it possible to capture a screen shot of the specified frame position in the video?

Thanks.

 

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 : Wednesday, March 2, 2011 1:56:25 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

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

You can start playing the video from selected frame position by using the ltmmPlayCtrl1.CurrentFramePosition property as follows:
+--------+
ltmmPlayCtrl1.AutoStart = False
ltmmPlayCtrl1.sourcefile = "C:\Long.avi"
ltmmPlayCtrl1.CurrentFramePosition = 100
ltmmPlayCtrl1.Run
+--------+

Also, you can take a snapshot from the running stream by using one of the following methods (all members of ltmmPlay):
------------
GetStillDIB
GetStillPicture
SaveStillBitmap
SaveStillDIB
------------

The code will be something as follows:
+--------+
ltmmPlayCtrl1.AutoStart = False
ltmmPlayCtrl1.sourcefile = "C:\Long.avi"
ltmmPlayCtrl1.CurrentFramePosition = 100
ltmmPlayCtrl1.SaveStillBitmap "C:\StillBitmap.bmp", ltmmPlay_StillFormat_BMP, 2, 0, -1
+--------+

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-2020, Yet Another Forum.NET
This page was generated in 0.037 seconds.