在 SWT 项目中嵌入 SVG 画布的示例代码? [英] Example code for embedding SVG canvas in SWT project?

查看:31
本文介绍了在 SWT 项目中嵌入 SVG 画布的示例代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一个很好的示例说明如何将 SVG 画布包含到 Java SWT 项目中(特别是 Holongate,虽然我会对任何其他选择感兴趣)?此外,我需要在 Mac OS X、Windows 和 Linux 客户端上支持此 SVG 画布,以防实现依赖于本机库.感谢您的指点.

Is there a good example of how to include an SVG canvas into a Java SWT project (particularly Holongate, though I would be interested in any other options)? Additionally, I would need to support this SVG canvas on Mac OS X, Windows and Linux clients, in case an implementation relies on native libraries. Thanks for any pointers.

推荐答案

使用蜡染 (http://xmlgraphics.apache.org/batik/).将 SVG 渲染到图像中.在 SWT 容器中显示它.便携.

Use batik (http://xmlgraphics.apache.org/batik/). Render SVG into the image. Display it in SWT container. Portable.

这篇关于在 SWT 项目中嵌入 SVG 画布的示例代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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