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

transcoder.wmf troubles

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: PC

      Description

      1 - is it right that WMFPainter changes WMFRecordStore fields (vpH, vpW, vpX,
      vpY) in paint Method?
      2 - there is not methods to know size of "image" that is stored in
      WMFRecordStore before it's painting by WMFPainter.
      3 - i have "Memory Out" Error when i am working with big vector images
      (~2000 * 1500)
      work code is -
      Writer writer = new StringWriter();
      Transcoder trans = new WMFTranscoder();
      TranscoderInput trinput = new TranscoderInput(in);
      TranscoderOutput output = new TranscoderOutput(writer);
      trans.transcode(trinput, output);

      ImageTranscoder trans1 = new PNGTranscoder();
      String str = writer.toString();
      trinput.setInputStream(null);
      trinput.setReader(new StringReader(str));
      File f = new File("wmf.png");
      f.createNewFile();
      FileOutputStream out = new FileOutputStream(f);
      output.setWriter(null);
      output.setOutputStream(out);
      trans1.transcode(trinput, output);
      } catch (Exception e)

      { e.printStackTrace(); }

      Thank you.

        Attachments

          Activity

            People

            • Assignee:
              batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
              Reporter:
              mamton@nm.ru Antonina
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: