摘要
Draw2D是Eclipse平台的一组API,用于处理2D图形及图像。由于Java只支持位图的读写,而不支持矢量图的处理,因此出现不少支持Java 2D矢量图导出的第三方软件包,然而还没有软件包具有Draw2D图像的矢量导出功能。通过对Draw2D软件包和PostScript语言的研究,并对EPS文件格式进行探讨,成功把Draw2D图像导出成EPS矢量图文件,为其后期处理提供便利的途径。
Draw2D is a group APIs in Eclipse, which deals with 2D graphics and image in Java language. Java supports bitmap perfectly, but it can't deal with vector graphics. There are some software packages that support the export of Java 2D vector graphics. However there is no library that can support the export of Draw2D vector graphics. After some research on Draw2D package and PostScript language, realizes a Java library of exporting Draw2D graphics into Encapsulated PostScript, which is vector graphics and good for post editing.
出处
《现代计算机》
2012年第9期46-51,共6页
Modern Computer
基金
国家自然科学基金项目(No.11175149
No.81101037)
福建省自然科学基金(No.2009J05152)
南京军区医药卫生科研基金(No.09Z019)