本文介绍了Windows窗体 - 透明背景PNG的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的一个小的个人项目,我需要建立一个非rectanguar窗口(更精确的圆 - 尽管这可能会改变),有阴影。我有改变区域属性,如果形式设置为背景PNG。

I'm working on a small personal project and I need to create a non-rectanguar window (a circle to be more precise - though that might change) that has a drop shadow. I have the round window by changing the Region property if the form with a png set as background.

的东西是窗口alised和PNG的透明度不圆窗加工。所以,问题是我如何获得AA antialised窗口和背景图像或antialised圆形窗口,一个方法来添加阴影效果到窗口的透明度。

The thing is the window is alised and the transparency of the PNG is not working. So the question is how do I get a a antialised window and the transparency of the background image OR the antialised circular window and a way to add the drop shadow effect to the window.

感谢。

推荐答案

您需要做的使用的p / Invoke

You need to make a Layered Window using P/Invoke.

的是一个.NET的例子。

Here is a .Net example.

这篇关于Windows窗体 - 透明背景PNG的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 04:40