Details
-
Bug
-
Status: Resolved
-
Resolution: Fixed
-
1.5
-
None
-
None
-
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)
Thank you.