"Brandon J. Rickman" wrote:
> I'm getting some unexpected behavior when I use a SRC_OVER composite with
> text.
>
> I set up a composite like so:
>
> comp = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, .5f);
> g2d.setComposite(comp);
>
> and when I draw text it appears correctly (antialiased) on the canvas.
> Actually I'm drawing a glyphVector, but that shouldn't matter, those are
> antialiased as well.
>
> But if I set the alpha value of the composite to 1 (fully opaque):
>
> comp = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 1f);
>
> I get nasty chunky text/Glyphs.
>
> Anyone seen this before, should I report a bug?
I've also seen strange alpha compositing behavior of Java 2D when
compared to the equivalent OpenGL output. On some modes, either one of
them gets it wrong.
I will try and create two minimal Java 2D e OpenGL applications to
display alpha composited primitives so that I can check the results and,
if the need be, submit a bug.
--
---------------------------------------------------------------
Alexandre Sieira Vilar - http://www.tecgraf.puc-rio.br/~asv
Computer Engineering Student at PUC-Rio - GNU and Linux rock!
3rd kyu Aikikkai Aikidoka (as of November 28, 1998)
---------------------------------------------------------------
"The Art of Peace begins with you. Work on yourself and
your appointed task in the Art of Peace. Everyone has a
spirit that can be refined, a body that can be trained in
some manner, a suitable path to follow. You are here for no
other purpose than to realize your inner divinity and
manifest your innate enlightenment. Foster peace in your
own life and then apply the Art to all that you encounter."
Morihei Ueshiba
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".