all groups > dotnet drawing api > march 2005 >
You're in the

dotnet drawing api

group:

Capturing a frame using the Windows Media Player control


Capturing a frame using the Windows Media Player control FinallyInSeattle
3/31/2005 2:22:52 PM
dotnet drawing api:
I'm using a Windows Media Player control in a Windows Form. I've been
able to capture the currently displayed frame by using a BitBlt
operation.

What I'm looking to do now is to set the uiMode to Full so that I get
the WMP's buttons and sliders to appear. If stretchToFit is set to
false, the video clip is displayed with a black border. How do I get
an image of JUST the video clip - how do I determine the X & Y offset
to the top right of the clip? I don't see any properties that reflect
what this is, nor do I see any property that indicates the height of
the control area.
Re: Capturing a frame using the Windows Media Player control FinallyInSeattle
3/31/2005 3:01:32 PM
Edit - I meant the X & Y offset to the top left of the clip.
AddThis Social Bookmark Button