-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GacUI是否支持透明窗口 #42
Comments
没有直接支持,你可以用GacUIWindows.h里面的 |
Direct2DWindowsNativeWindowListener_1_0里Alpha通道是可以通过设置D2D1_RENDER_TARGET_PROPERTIES属性设置的(GacUI/Source/NativeWindow/Windows/Direct2D/WinDirect2DApplication.cpp,第97行),然后只要用DwmEnableBlurBehindWindow就可以把底色去掉; |
@TonyDragonlake 我学习一下,不过我记得你可以直接设置窗口的透明色吧,D2D渲染上去什么都可以,感觉不需要在D2D的这一层做。不过这样可能不支持磨砂玻璃效果。 |
非常感谢。 |
@TonyDragonlake 这篇文章是给D2D渲染用的,GDI的话从vista开始就支持设置图片作为背景的同时用alpha通道作为每一个像素的透明度的 |
GDI+ 结合 updateLayeredwindow可以实现透明窗口的效果,GacUI 是否也支持透明窗口的D2D渲染?看了下代码和样例,只大概看明白了 D3D结合D2D绘制窗口过程,没有发现透明窗口支持部分
The text was updated successfully, but these errors were encountered: