Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
Is it possible to create a Direct3D device as an alpha-blended overlay on the Windows desktop? I would like the desktop to be my base layer upon which I will overlay one or more layers in the standard manner. If this is not directly supported, can I write a routine which will sample the desktop space behind my DirectX device and then render it to a texture?
Posted
Is it possible to create a Direct3D device as an alpha-blended overlay on the Windows desktop? I would like the desktop to be my base layer upon which I will overlay one or more layers in the standard manner. If this is not directly supported' date=' can I write a routine which will sample the desktop space behind my DirectX device and then render it to a texture?[/quote']

 

What about creating a compatible bitmap from the desktop and then using the bitmap as a backround for your D3D App?

-Sean
Posted
What about creating a compatible bitmap from the desktop and then using the bitmap as a backround for your D3D App?

 

That sounds like a good idea. I could use GDI+ to do a screen grab. The question is, can I grab the screen 'under' my application? I.e. I want my app to overlay another app's viewport window. So if my app is running, I want my DX viewport to continually reflect the underlying app's viewport contents. Can I use GDI+ to grab the desktop region occluded by my app? My first attempt involved setting the transparency key on a panel the size of the viewport. This way I can position my app as a 'screen' on top of the other viewport. This works, but what I really want is a transparent directx window in this region.

Posted
That could work, but constantly grabbing the screen contents would be kind of slow and cumbersome, besides you'd have to minimize all windows and then take the screenshot and save it as a bitmap (Mybitmap.save("file.bmp") and use it and ... well, if you're onnly doing it once, then go for it, but multiple times would be... hard. Either that or I'm not understanding your question.

My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!)

vbprogramming.8k.com

My Project (Need VB.NET Programmers)

http://workspaces.gotdotnet.com/ResolutionRPG

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...