Convert WMF to PNG/BMP/JPG

后端 未结 3 2189
闹比i
闹比i 2020-12-20 22:57

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

3条回答
  •  悲哀的现实
    2020-12-20 23:24

    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

提交回复
热议问题