Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-622

BridgeException when transcoding particular svg file...

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Incomplete
    • 1.6
    • None
    • Bridge
    • None
    • Operating System: other
      Platform: Other

    Description

      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.

      Attachments

        1. 3D.svg
          21 kB
          Steven Shaw

        Activity

          People

            batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
            steveshaw@ca.ibm.com Steven Shaw
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: