以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 SVG/GML/VRML/X3D/XAML 』  (http://bbs.xml.org.cn/list.asp?boardid=21)
----  [推荐]Using Adobe's SVG Viewer for batch rendering  (http://bbs.xml.org.cn/dispbbs.asp?boardid=21&rootid=&id=14815)


--  作者:SCYANGYU
--  发布时间:2/26/2005 7:21:00 PM

--  [推荐]Using Adobe's SVG Viewer for batch rendering
Using Adobe's SVG Viewer for batch rendering

a method I know,
here a rough outline of an Example (I used delphi for a similar app):
1. create an ASV object and place it onto a form
2. set the src to the file you want to display
3. wait for the readyState of the ASV to change to 4 while leting the
App process window messages
4. resize the ASV object to the size specified in the document (you
can get that by using the DOM methods.
5. create an in memory bitmap of the same size
6. paint the content of the ASV to the bitmap using paintToDC() of teh
ASV controll.
or send a msg to the controll so it paints itself to the bitmap.
I don't remember the particulars for that but I had it working before
7. save the bitmap to a file or transform it to a png using some png lib.
8. destroy the ASV object
9. repeat 1-8 for each file


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
4,914.063ms