将WMF转换为PNG / BMP / JPG [英] Convert WMF to PNG/BMP/JPG

查看:859
本文介绍了将WMF转换为PNG / BMP / JPG的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用自定义输出分辨率将一个WMF文件转换为PNG / BMP / JPG格式?

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

示例:获取WMF文件并输出2000x2000 px的PNG文件。

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

提前致谢。

推荐答案

你可以使用优秀的蜡染布( http://xmlgraphics.apache.org/batik/ )lib来实现这一目标。但您需要按照以下步骤操作:

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


  1. 使用WMFTranscoder将WMF文件转换为SVG

  2. 使用JPGTranscoder将SVG转换为JGP

WMF >> SVG >> JPG

WMF >> SVG >> JPG

以下是关于它的代码讨论: http://www.coderanch.com/t/422868/java/java/converting-WMF-Windows-Meta-File

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

这篇关于将WMF转换为PNG / BMP / JPG的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆