Windows Develop Bookmark and Share   
 index > Windows Forms General > Capture a snapshot from Windows Media Control?
 

Capture a snapshot from Windows Media Control?

I am playing a video file progrmatically from a mpg file. Can we capture a snapshot when the user clicks a button? Is it possbile to do this using Windows Media Control or do we need to buy a third party control?

Please advise!!

Thanks,

Naren

Naren Ranganathan  Monday, July 31, 2006 1:40 AM
Starting from Windows Media Player 9, there is an API that allows you to capture the screen (available in Media Player using Ctrl-I shortcut key). I haven't looked into the details on how to getthe SDK way(because my previous attemp to do this, is to cature the Form itself), so let me redirect you to an article that demonstrate how to do this in C++:
http://www.codeproject.com/dialog/screencap.asp

Go to "Capturing the Screen with Window Media API " section of the article.

Best of luck,

-chris
Chris Vega  Wednesday, August 09, 2006 5:26 AM
Starting from Windows Media Player 9, there is an API that allows you to capture the screen (available in Media Player using Ctrl-I shortcut key). I haven't looked into the details on how to getthe SDK way(because my previous attemp to do this, is to cature the Form itself), so let me redirect you to an article that demonstrate how to do this in C++:
http://www.codeproject.com/dialog/screencap.asp

Go to "Capturing the Screen with Window Media API " section of the article.

Best of luck,

-chris
Chris Vega  Wednesday, August 09, 2006 5:26 AM

I have windows media 9 I tried the crtl I to capture a picture from live feed from a local zoo. I wanted to use the pic as a screen saver or on my desktop. Because its live feed is this why its stopping me from captureing that specific frame?

Thanks

Tracy Madry aka tigergirl923

tigergirl923  Thursday, August 10, 2006 2:41 PM
Is you Media Player asking you for filename whenever you press Ctrl-I? If not, then you may try capturing the screen using Print-Screen, but to do that, you have to disable overlay supportfrom your Media Player from its options.

Regards,

-chris
Chris Vega  Friday, August 11, 2006 3:57 AM

where is the disable overlay support option in opitions for windows media. Also I don't have a print selection in file or if I hit ctrl+p.

Thanks

tigergirl923

tigergirl923  Friday, August 11, 2006 9:39 PM

You can use google to search for other answers

Custom Search

More Threads

• drawing line in design time between controls
• backcolor=transparent
• MeuStrip
• Closing original Form
• call windows form from com class
• crystal reports direct print using printdialog
• GUI Freeze on RichtextBox properties
• How to access object from back reference project
• overflow error in System.Drawing.Drawing2D.GraphicsPath.FillPath
• Invalid Namespace Exception with My.Computer.Info.OSFullName