xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bhavi <Bhawani.Sha...@metacube.com>
Subject WMFTranscoder is distorting the image
Date Sat, 06 Dec 2008 10:35:14 GMT

Hi there,

I am using WMFTranscoder to convert a file from wmf to svg but this
transcoder is not generating the perfect svg that's why i'm not  getting
accurate result.It's not throwing any exception also.
My code is as follows:
 TranscoderInput input = new TranscoderInput(imageSourcePath);
            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

            BufferedImage image = r.createBufferedImage();
            ImageIO.write(image, ".gif", new File("test.gif"));

I have attached the wmf image  for which i'm facing this problem. 
Please  reply ASAP.
thanks in advance. http://www.nabble.com/file/p20868715/image3_214318.wmf


View this message in context: http://www.nabble.com/WMFTranscoder-is-distorting-the-image-tp20868715p20868715.html
Sent from the Batik - Users mailing list archive at Nabble.com.

To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org

View raw message