Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

capture image from overlay surface

0 views
Skip to first unread message

Priya

unread,
Nov 24, 2009, 1:03:07 AM11/24/09
to
Hi All,
Can anybody tell me how to capture image from overlay surface.
Thanks

__________ Information from ESET NOD32 Antivirus, version of virus signature database 4631 (20091123) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


dominolog

unread,
Nov 24, 2009, 10:48:55 AM11/24/09
to

Hello

I'd recommend (I implemented it in one of my projects) that you block
the overlay surfaces (can be more than 1 for some GPUs), run the
program you want to capture and then use GDI to capture because most
media players default to GDI when no overlay surface is available.
Blocking of overlay surfaces can be achieved by simply creating
overlay surfaces using DirectX7/8 from your app so that no other app
can use it.

Dominik

Priya

unread,
Nov 25, 2009, 1:22:25 AM11/25/09
to
Hi sir, Thanks for your response. I already tried that method to capture.
If WMP is running and if try to lock the overlay surface I am getting
exception.
If WMP is not running, I am able to lock the overlay surface and capture
using GDI.
Can't we lock surface when WMP is running? How can I handle it?

Thanks.


"dominolog" <dominik...@gmail.com> wrote in message
news:a6d47fd3-0a1c-400b...@o31g2000vbi.googlegroups.com...

Hello

Dominik

database 4634 (20091124) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus signature database 4634 (20091124) __________

Tim Roberts

unread,
Nov 26, 2009, 10:38:47 PM11/26/09
to
"Priya" <sup...@yahoo.com> wrote:
>
>Hi sir, Thanks for your response. I already tried that method to capture.
>If WMP is running and if try to lock the overlay surface I am getting
>exception.
>If WMP is not running, I am able to lock the overlay surface and capture
>using GDI.
>Can't we lock surface when WMP is running?

No. That should be obvious. Media Player already owns the overlay
surface. In order to block overlays, you must do so BEFORE someone else
grabs it.

>How can I handle it?

You have to do your setup before Media Player starts.
--
Tim Roberts, ti...@probo.com
Providenza & Boekelheide, Inc.

Priya

unread,
Nov 26, 2009, 11:35:48 PM11/26/09
to
Then I cannot use this solution for my task..

Thanks.

"Tim Roberts" <ti...@probo.com> wrote in message
news:obiug5tmlm8t4uhrt...@4ax.com...

> __________ Information from ESET NOD32 Antivirus, version of virus

> signature database 4640 (20091126) __________


>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>

__________ Information from ESET NOD32 Antivirus, version of virus signature database 4640 (20091126) __________

0 new messages