Convert WMF to PNG/BMP/JPG

白昼怎懂夜的黑 提交于 2019-12-01 18:19:34

问题


How can I convert one WMF file to PNG/BMP/JPG format with custom output resolution?

Example: Take WMF file and outputs PNG file with 2000x2000 px.

Thanks in advance.


回答1:


You can use the excelent Batik ( http://xmlgraphics.apache.org/batik/ ) lib to achieve this. But you will need to follow this steps:

  1. Convert the WMF file to SVG using the WMFTranscoder
  2. Convert the SVG to JGP using the JPGTranscoder

WMF >> SVG >> JPG

Here is a discussion on coderanch about it: http://www.coderanch.com/t/422868/java/java/converting-WMF-Windows-Meta-File




回答2:


You can use different tools for this format. You can choose for example GIMP. In Java you have a library for converting WMF files.



来源:https://stackoverflow.com/questions/14279104/convert-wmf-to-png-bmp-jpg

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!