我需要将图像(通常为java.awt.image.BufferedImage
)导出为 WMF 格式(Windows 元文件)。我用谷歌搜索了大约一个小时,但没有机会。
你知道任何图书馆或建议来完成它吗?
谢谢。
According to Apache FOP(https://xmlgraphics.apache.org/fop/1.1/graphics.html#wmf) :
"Windows Metafiles (WMF) are supported through classes in Apache Batik. At the moment, support for this format is experimental and may not always work as expected."
http://xmlgraphics.apache.org/batik/
Actually I found solutions to transcode FROM wmf, apparently nobody wants to create wmf, still you can give it a try.
最后,我在http://java.freehep.org/FreeHep
上找到了一个名为available的库。核心 IO 库旁边有驱动程序。创建一个对象并在该图形对象上绘制非常简单。下一步是完成导出过程。EMF
Postscript
VectorGraphics
java.awt.image.BufferedImage