Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

mrmrcoleman

Extracting a static image from a direct show stream??

This topic is 5222 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello. I have an interface in which several buttons are represented as DirectShow animations on a keyboard. The buttons work except that before they have pressed (i.e. clicked on) they are not visible. I need some way to extract the first frame of the animation and then be able to display it to a Direct3D surface. Has anybody come across this problem? Is there a simple solution that I am missing? Thanks in advance for any help. Mark Coleman

Share this post


Link to post
Share on other sites
Advertisement
The DX SDK has a sample for this exact procedure.
Search for topic "Grabbing a Poster Frame".
As to displaying a D3D surface, use the Media Detector''s method "GetBitmapBits" and write the said bits to the destination.

-Nik

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!