Hi,
You can't do an alpha-blended composition of two bi-level images, as a
bilevel image has only two levels, either completely white or
completely black. So you first have to create a new temporary "true
color" BufferedImage (any of the TYPE_INT_RGB or TYPE_3/4BYTE_RGB/BGR
will probably do fine), and then draw both your images into that. Use
alpha only for the second image. Good luck! ;-)
--
Harald K
On 4. aug.. 2008, at 17.50, [EMAIL PROTECTED] wrote:
I am trying to add one image above another image.
And tried alpha from 0 to 1, they all did not work.
So what's right way to do this?
[Message sent by forum member 'jiezhang' (jiezhang)]
http://forums.java.net/jive/thread.jspa?messageID=291351
=
=
=
=
=
======================================================================
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".
===========================================================================
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".