On Thursday 14 June 2001 00:54, Roland Schulz wrote:
> Hey,
>
> I don't think my problem is caused by batik, but it is very clause related.
> I would like to rasterize so that all browser show the transparency. Since
> transparent png's aren't supported by the Internet Explorer, I want to use
> gif's instead (in my case it doesn't matter that gif don't support alpha
> transparency, because I only want the background to be transparent). To do
> this I wrote a GIFTranscoder with the following function.
>
> public void writeImage(BufferedImage img, TranscoderOutput output)
> throws TranscoderException {
> OutputStream ostream = output.getOutputStream();
> new GifEncoder (img, ostream).encode ();
> }
>
> As GifEncoder I use the one from Acme (http://www.acme.com/java/software/).
> This way I can rasterize gif's but they aren't transparent! Somehow the
> alpha channel is for all pixels read in by the encoder set to 255, even
> though this svg works with the PNGTranscoder. I don't use any filters (e.g.
> to reduce the colors - right know the image doesn't have to much colors).
> It looks to me that the ColorModel or the ImageConsumer which are used by
> the Encoder somehow mess up the Alpha channel. But the Acme Encoder is
> suppose to support transparent gif's. It sets all pixels with alpha < 128
> to the transparent color. But since alpha is somehow always 255 it doesnt
> work. Does anyone know if it really supports transparent gif's? Has anyone
> generated transparent gif's before?
>
> I also tried the Gif89Encoder version (jmge.net/java/gifenc) and the pja
> (www.eteks.com/pja/en/) version, with the same results.
I have no clue sorry. Anyway, if you find the answer, please let me know :)
Thierry.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]