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
精彩评论