带有 Alpha 混合控件的 C# Alpha 混合形式

发布于 2024-10-05 23:11:16 字数 319 浏览 0 评论 0原文

Alpha 混合形式没有问题(例如 http://www.codeproject.com/KB/ Graphics/alphaBG.aspx),但是 alpha 混合控件(例如带有 32 位图像的图片框)不起作用...

这是我的问题:

我有 alpha 混合形式(不必是 alpha 混合)并且表单的完全透明部分我想用 32 位图像绘制图片框。但是这个图像的背景是透明颜色(紫红色)

我怎样才能使图片框也完全混合?

Alpha blended forms are no problem (for example http://www.codeproject.com/KB/graphics/alphaBG.aspx) but alpha blended controls like pictureboxes with 32bit images don't work...

Here is my problem:

I have the alpha blended form (which doesn't have to be alpha blended) and on a full transparent part of the form I want to draw the picturebox with an 32bit image. But this Image has at the background the transparent color(Fuchsia)

How can I make it, that the picturebox is also fully blended?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文