DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38782>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38782

           Summary: BridgeException when transcoding particular svg file...
           Product: Batik
           Version: 1.6
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Bridge
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Executing the following code causes a BridgeException:

               InputStream in = new FileInputStream("c:\\3d.svg");
                
                ImageTranscoder transcoder = new ImageTranscoder() {
                    
                    public BufferedImage createImage(int w, int h) {
                        return new BufferedImage(w, h, 
BufferedImage.TYPE_INT_ARGB);
                    }
                    
                    public void writeImage(BufferedImage img, TranscoderOutput 
arg1)
                        throws TranscoderException {
                        // do nothing
                    }  
                };

                TranscoderInput input = new TranscoderInput(in);
                TranscoderOutput output = new TranscoderOutput();

                try {
                    transcoder.transcode(input, output);
                } catch (TranscoderException exp) {
                    // TODO Auto-generated catch block
                    exp.printStackTrace();
                }

See attachment for particular svg file.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to