View Single Post
  #2 (permalink)  
Old 04-01-2008, 10:01 AM
Xav's Avatar   
Xav Xav is offline
Code Warrior
 
Join Date: Mar 2008
Location: On God's Planet
Posts: 9,834
Last Blog:
Web slideshow in JavaS...
Rep Power: 78
Xav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud of
Send a message via MSN to Xav
Default Re: Extract frame from video (VB.NET)

I don't know about programming one, but you can do this with the normal Windows functions. Just open up the video file in Windows Movie Maker, move the marker to the place in the video you want, then click the little camera icon in the preview box. This will prompt you to save the image.
Otherwise, just load it up in Windows Media Player (WMP) and take a screenshot of it. In some cases the video will not be captured in the screenshot, in which case you need to switch Hardware Acceleration on/off (you can do this inside the Options menus).
If you use Winamp, you can slow the video dow to see the individual frames, for greater control. Once you have saved them as images, you can load them like this:

Code:
Dim bmp As Bitmap = Image.FromFile("C:/thepicture.jpg")
If you want to show them, you can load them into a picture box:

Code:
PictureBox1.Image = bmp
Or, you can draw them straight to the screen with Me.CreateGraphics().DrawImage().

Xav
__________________


Mr. Xav | Website | Forums | Blog
Reply With Quote