msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Getting Current Image from Video File

 
Post new topic   Reply to topic    msvisual.com Forum Index -> DirectX
Author Message
Jerry Spence1



Joined: 29 Jan 2008
Posts: 1

PostPosted: Wed Jan 30, 2008 2:39 am    Post subject: Getting Current Image from Video File Reply with quote

I hope this is the right group.
I have just started using ActiveX and I am trying to find out how to get the
current image when on pause. This can go to the clipboard, to a file,
picturebox etc My simple code is:
Imports Microsoft.DirectX.AudioVideoPlayback

Public Class Form1

Dim MyVid As Microsoft.DirectX.AudioVideoPlayback.Video

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
MyVid = Video.FromFile("C:\080117_140321.asf", False)
MyVid.Owner = Me
MyVid.Play()
End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click

MyVid.Pause()

'Need to capture frame here

End Sub

End Class


Thanks

-Jerry

Archived from group: microsoft>public>vb>directx
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    msvisual.com Forum Index -> DirectX All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group