Board index » delphi » Create Bitmap from Windows Media Player video frame

Create Bitmap from Windows Media Player video frame

Hi,

I've embedded the Windows Media Player control within my Delphi 5
application and am trying to capture the currently displayed video frame to
a bitmap for use elsewhere in my app.

I've seen a couple of posts suggesting that this can't be done; however, the
Microsoft free screen capture program (i.e., HTML Help Image Editor) has no
problem selecting the Media Player's client window and capturing its
contents.  Any ideas on how to accomplish this in Delphi with or without the
use of DirectDraw?  Thanks...

Jeff Rhoads

 

Re:Create Bitmap from Windows Media Player video frame


check out: http://community.borland.com/article/0,1410,16037,00.html

HTH,

Mike B.

Re:Create Bitmap from Windows Media Player video frame


-----------------------------------------------------------------------
This message is brought to you by Joe Hecht's TExcellent products,
solving Form.Print and bitmap printing problems. Joe Hecht's TExcellent
products can be found at: www.code4sale.com/joehecht/index.htm
-----------------------------------------------------------------------

I wrote that article when I was at Borland, and also posted
(here) a much better version a couple of years ago, but I
fail to understand how that would work with capturing the
video screen of the Media Player...

Joe

Quote
"Mike B." <mb...@execpc.com> wrote in message news:3a775039_1@dnews...
> check out: http://community.borland.com/article/0,1410,16037,00.html

> HTH,

> Mike B.

Re:Create Bitmap from Windows Media Player video frame


As you gathered, my primary interest is to find a way to capture the Media
Player's client window screen image.  However, an alternative solution would
be to somehow use the Media Player's underlying DirectShow interface to grab
the actual frame image.  I've seen references to using IBasicVideo and the
GetCurrentImage() method to accomplish this task within a DirectShow app;
however, I don't understand how to access this interface via the Media
Player control.  Any experience with this interface??  Thanks again...

"Joe C. Hecht" <joehe...@code4sale.com> wrote in message
news:3a77a655_1@dnews...

Quote
> -----------------------------------------------------------------------
> This message is brought to you by Joe Hecht's TExcellent products,
> solving Form.Print and bitmap printing problems. Joe Hecht's TExcellent
> products can be found at: www.code4sale.com/joehecht/index.htm
> -----------------------------------------------------------------------

> I wrote that article when I was at Borland, and also posted
> (here) a much better version a couple of years ago, but I
> fail to understand how that would work with capturing the
> video screen of the Media Player...

> Joe

> "Mike B." <mb...@execpc.com> wrote in message news:3a775039_1@dnews...
> > check out: http://community.borland.com/article/0,1410,16037,00.html

> > HTH,

> > Mike B.

Other Threads