开发者

Is there a .NET GDI+ equivalent of Java Swing's SetComposite (for Graphics transparency)?

I was wondering if there is a开发者_StackOverflown equivalent to Swing's SetComposite on the .NET GDI+ Graphics object?

In java I can do something like this:

Composite c = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, .5f);
g2.setComposite(c);
// everything now gets painted with 50% transparency

I know there is ColorMatrix but that's only explicitly for transforms on images whereas I'd be looking for something on the entire graphics object.

Thanks, John


You can use Form transparency, Control transparency which supports transparency

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜