开发者

How to make DirectX Control partially transparent on C# Form

I have a Windows Form with an image as a background; and I also have a user control which I've added to the form, and renders itself using directx. However, I want the directx UserControl (directx scene) to render partially transparent so that I can see the image background of the form.

I have the source code to the managed directx user control, but I just don't know enough about directx to make it s开发者_如何学Co the entire scene renders semi-transparent. Does anyone know how I would go about achieving this?

Note: I'm using C#/VS '08/Managed DirectX

Thanks for your help.


I don't believe this is possible in Windows Forms as you'll run into 'airspace' issues. There are a few posts which cover this (granted they point you to use WPF and D3DImage).


not sure but, maybe this will help...

http://www.c-sharpcorner.com/UploadFile/Nildo%20Soares%20de%20Araujo/TransparentControls11152005074108AM/TransparentControls.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜