The program shows a component for the delphi6-CLX platform, which is able to display SVG-Graphics (*.svg). the svg-viewer uses the OpenGL-API for displaying the graphics. up to know the viewer supports only a few keywords ( like path, tspan, g , ... ). features: - handle 5 svg-files at the same time - zoom in &
zoom out - save and print current pictures
SVG-Viewer ( ALPHA ):
---------------------
by M.o.D.
visit (under construction ) : http://moddom.gmxhome.de
what's this?
------------
the program shows a component for the delphi6-clx platform, which is able to display SVG-Graphics (*.svg).
the svg-viewer uses the OpenGL-API for displaying the graphics. up to know the viewer supports only a few keywords
( see list ) ;( ! some nice examples are included in this archive. the delphifile (unit1.pas) demonstrates how to use this viewer.
howto:
-----
- load up to 5 svg-files using the "Add File"-Button you want to display
- select 1-5 files form the list
- click the "Draw File"-Button to display the files
- hold the right mousebutton and move the mouse up and down to zoom in and out
- hold the ctrl-key and move the mouse to move the current picture
- hold the shitf-key and size a zoom-in rectangle using your mouse
the other buttons are self-explaining ;) !
supported keywords:
-------------------
- svg
- rect
- ellipse
- path
- circle
- line
- g
- text
- tspan
- title
- polygon
- polyline
todo:
-----
- VERY IMPORTANT: triangulate the polygons to get filled areas
- support more keywords
- ...
problems:
---------
if someone knows a good way for triangulating polygones described through a array of points, then let me know!i tried to use the gluTesselation-API, but never got satisfying solutions ;( ( the functions didn't work ) ! so, if you know hot to use the gluTesselation-API in a efficient way, let me know !
if you're interested in using this unfinished component, then mail me ( QSVGviewer.dcu + documentation) !!
M.o.D.
File List:
SVG_VIEWER.exe
555Kb
Unit1.pas
4Kb
barChart.svg
5Kb
cowboy.svg
440Kb
longhorn.svg
201Kb
mozilla.svg
22Kb
readme.txt
2Kb
tiger.svg
95Kb
Similar code
Tutorial on using DB Express Components with MySQL v1.1
(Popularity: ) : Is is a Simple Database Tutorial written in C++ (Kylix IDE)
which Demonstrates using DBExpress components with MySQL
Server, portable across platform Linux(Kylix C++) and Windows
(C++ Builder 6+)
TVicHW32 component for Kylix 1.0
(Popularity: ) : TVicHW32 is a Kylix component for directly accessing hardware
(ports, memory, interruptions) under Linux. Windows Shut down
(Popularity: ) : You choose an hour and your windows shuts down. Nothing great, but could help newbies like me, to understand a little more about delphi. TExcelDSNCreator
(Popularity: ) : This Delphi component can be used to add/remove/configure Microsoft Excel Datasource Names (DSNs) on the fly, using just one line of code! Now supports Delphi 4, 5 and 6!