LEADTOOLS Support
General
General Questions
Capture a screen shot of the specified frame position in the video
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, March 1, 2011 9:31:37 PM(UTC)
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.
#2
Posted
:
Wednesday, March 2, 2011 1:56:25 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
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
LEADTOOLS Support
General
General Questions
Capture a screen shot of the specified frame position in the video
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.