GDI 对象 HBRUSH 半透明
我正在为我的应用程序使用 GDI 和 VS 6.0。
在我的应用程序中,绘制的多边形是重叠的,并且我使用 CreateSolidBrush 用特定颜色填充每个多边形。区域是使用 CRgn 类
现在我的问题是我想让底层多边形变得可见(通过使重叠层半透明)。对于椭圆、线条、文本等底层其他形状也是如此。
这里我使用了CreateHatchBrush
。
我知道 HBRUSH
对象可以指定颜色或可以设为透明。
但我想要的是类似于 不透明度 或 GDI+ 的 颜色(Alpha)属性
GDI+ 似乎是一个选项,但它在 VS 6.0 中不可用。
任何有关我如何实现这一目标的意见都将受到赞赏。
I am working with GDI and VS 6.0 for my application.
In my application the drawn polygons are overlapping , and I am filling each polygon with a specific color using CreateSolidBrush
.The Regions are created using the CRgn class
Now my problem is I want to make the underlying polygon to be some what visible ( by making the overlapping layer translucent). Same goes for underlying other shapes like ellipses,lines,text.
Here I have used a CreateHatchBrush
.
I know that the HBRUSH
object can be assigned with a color or can be made transparent.
But what I want is something similar to Opacity or GDI+'s Color(Alpha) property
GDI+ seemed to be an option but its not available with VS 6.0.
Any views on how can I achieve this is appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
AlphaBlend
AlphaBlend
on MSDN