以文本方式查看主题 - 中文XML论坛 - 专业的XML技术讨论区 (http://bbs.xml.org.cn/index.asp) -- 『 SVG/GML/VRML/X3D/XAML 』 (http://bbs.xml.org.cn/list.asp?boardid=21) ---- [转帖]Adobe SVG via COM/ActiveX - Part 1 (http://bbs.xml.org.cn/dispbbs.asp?boardid=21&rootid=&id=14887) |
-- 作者:SCYANGYU -- 发布时间:2/28/2005 2:43:00 PM -- [转帖]Adobe SVG via COM/ActiveX - Part 1 Trying to figure out how to use Adobe SVG via ActiveX/COM, instead of via HTML. In J++, you can get this to work by creating a form, adding an Adobe SVG ActiveX control, setting the SRC property to a valid SVG path, then calling for example: Object o = SVGCtl1.getSVGDocument(); You may ask why not use Batik if we are using Java, and the answer is the Adobe control is much faster. Nobody uses browsers written in Java for this reason... ActiveX Support in SWT provides good information, which I used to create this example. import org.eclipse.swt.internal.ole.win32.*; public class AxClientTest OleClientSite clientSite = new OleClientSite(frame, SWT.NONE, file); clientSite.doVerb(OLE.OLEIVERB_SHOW); OleAutomation a = v.getAutomation(); // Note: you can get some of the basic properties here, but if you want to start accessing DOM elements,
|
W 3 C h i n a ( since 2003 ) 旗 下 站 点 苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》 |
58.594ms |