Hi there,
I am using batik-1.7's WMFTranscoder to convert wmf images in to gif images
using the code :
TranscoderInput input = new TranscoderInput(new FileInputStream(new
File("test.wmf")));
boas = new ByteArrayOutputStream();
bos = new BufferedOutputStream(boas);
/*Transcode the input WMF file to SVG format.*/
TranscoderOutput output = new TranscoderOutput(bos);
WMFTranscoder transcoder = new WMFTranscoder();
transcoder.transcode(input, output);
/*convert SVG to Rasterized image. This case it will be a GIF*/
SVGRasterizer r = new SVGRasterizer(new ByteArrayInputStream(new
String (boas. toByteArray()
).getBytes("utf-8")));
r.setBackgroundColor(java.awt.Color.white);
BufferedImage image = r.createBufferedImage();
ImageIO.write(image, ".gif", new File("test.gif"));
It's working perfectly for some of the images but not working for all the
images perfectly.
Here i have attached the image for which i am facing this problem.
http://www.nabble.com/file/p20908377/test.wmf test.wmf
Can anybody help me in this matter.
Thanks in advance.
Thanks:
Bhawani Sharma
--
View this message in context:
http://www.nabble.com/Transcoder-is-not-converting-wmf-image-properly-tp20908377p20908377.html
Sent from the Batik - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]