需要使用java将EMF转换为jpeg,png文件格式

问题描述:

我需要使用完整的java代码将emf,wmf文件格式转换为png或jpeg(因为某些浏览器不支持这些格式)..任何人都可以指导我..

I need to convert the emf,wmf file formats to png or jpeg using full java code(since these formats are not supported in some browsers)..Can anybody guide me..

提前致谢

最快的方式可能是使用 Imagemagick 。它可以支持 EMF和WMF格式。我使用 im4java 成功使用了Imagemagick,这是Imagemagick的Java界面。

The fastest way is probably to use Imagemagick. It does support the EMF and WMF formats. I have used successfully Imagemagick from Java using im4java, an Java interface for Imagemagick.

或者你可以看看 Jmagick ,这是Imagemagick的另一个Java界面。我发现这个更复杂。

Alternatively you can look at Jmagick, another Java interface for Imagemagick. I have found this one more complex to use.