[4752] in java-interest
More on the transparency issue
daemon@ATHENA.MIT.EDU (Edd Dumbill)
Fri Jan 12 11:47:49 1996
Date: Fri, 12 Jan 1996 15:08:39 +0000
From: Edd Dumbill <edmundd@compnews.co.uk>
Cc: java-interest@java.sun.com
I've looked at the archives of this newsgroup to see if there was
anyone who had already sussed this, but to limited avail.
I am creating an Image and then drawing it onto another Image's
Graphics. The first image is made up of text and I would like
its background to be transparent so that the 2nd image shows
through.
I thought of doing this with the IndexColorModel but cannot find
a way to set one up for an image created with applet.createImage(x,y).
So then my thoughts turned to ImageFilters but also with limited
success. The problem here is that the image updates very regularly
and filtering the image with, say, an alpha filter, is just sooo slow
and no use at all (I still didn't manage succcessfully to create a filter
with an IndexColorModel - kept getting NullPointer exception).
I know what I want must be possible as transparent GIF rendering
works. However I suspect this is all tucked away from the API user's
reach.
If it cannot be done, I consider this a serious ommission in Java's
image handling - one cannot use GIFs for everything.
Replies CC'd to me by mail as well as posted would be appreciated
as I need to get this one sorted ASAP.
Thanks in anticipation,
Edd.
--
Edd Dumbill - Software Engineer - PA Data Design - +44 1430 488224
mailto:edmundd@padd.press.net - http://www.pa.press.net/people/edmundd
and i like the way you're broken and i'll like you when you're old
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com