You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by Keiron Liddle <ke...@aftexsw.com> on 2002/11/20 11:21:35 UTC

export png problem

Hi,

I discovered a problem when exporting png using squiggle.
It gets an illegal argument exception with the png indexed key.

The patch fixes the problem. This is only a quick fix.


Keiron.



Re: export png problem

Posted by Vincent Hardy <vi...@sun.com>.
Hello Keiron,

Thanks for the patch. I'll add it in shortly.
Vincent.

Keiron Liddle wrote:
> Hi,
> 
> I discovered a problem when exporting png using squiggle.
> It gets an illegal argument exception with the png indexed key.
> 
> The patch fixes the problem. This is only a quick fix.
> 
> 
> Keiron.
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> Index: sources/org/apache/batik/apps/svgbrowser/JSVGViewerFrame.java
> ===================================================================
> RCS file: /home/cvspublic/xml-batik/sources/org/apache/batik/apps/svgbrowser/JSVGViewerFrame.java,v
> retrieving revision 1.88
> diff -u -r1.88 JSVGViewerFrame.java
> --- sources/org/apache/batik/apps/svgbrowser/JSVGViewerFrame.java	6 Nov 2002 20:55:46 -0000	1.88
> +++ sources/org/apache/batik/apps/svgbrowser/JSVGViewerFrame.java	20 Nov 2002 10:18:02 -0000
> @@ -1240,7 +1240,7 @@
>  		    // Start: By Jun Inamori
>  		    if(isIndexed){
>  			trans.addTranscodingHint
> -                            (PNGTranscoder.KEY_INDEXED,new Boolean(true));
> +                            (PNGTranscoder.KEY_INDEXED, new Integer(256));
>  		    }
>  		    // End: By Jun Inamori
>  
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-dev-help@xml.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org