Graphics Reference
In-Depth Information
SVG
18.3
Overview of SVG
18.3.1
SVG is an XML format for describing two-dimensional vector graphics. In the days
before SVG, the Microsot-led Vector Markup Language (VML) and the Adobe-led
Precision Graphics MarkupLanguage (PGML)wereproposedtoW
C(W
C,
).
SVG
.
wasreleased in September
byW
Cas an integrated format. hecurrent
version, SVG
.
, was recommended in January
.
SVG Viewers
SVG consists of a plain text file as well as HTML. hus, exclusive sotware that dis-
playsSVGasagraphicisrequired.Functionsmentionedintheprevioussection,such
as zooming, are implemented in the viewer. Table
.
lists some SVG viewers; they
be classified into the following three categories:
Browser plug-in
: he browser plug-in is the most common form of SVG dis-
playenvironment. AdobeSVGViewer
.
(ASV
,Adobe(
)),whichsupports
SVG
.
,isthedefactostandard forSVGbrowserplug-ins.ASV
,whichsupports
the next version of SVG (SVG
.
), is currently at the beta testing stage and is set
to be released ater the SVG
.
recommendation is announced.
Web browsers that support native rendering of SVG
: SVG-enabled builds of
FirefoxandMozilla(theo
cialbinarypackagesdonotsupportnative rendering)
and Opera
.
support native rendering of SVG.
Stand-alone application
: Batik (Apache Sotware Foundation,
) is a Java
technology-based toolkit for SVG. One application of Batik is Batik Squiggle,
which is a full-fledged SVG browser.
We will briefly illustrate the SVG language specification through simple examples.
For more detail, refer to the W
C website W
C (
). Note that all SVG examples
were obtained with Internet Explorer
.
+ ASV
.
.
Basic Structure
18.3.2
he first line of a SVG document is the XML declaration, and the second line is
the Document Type Definition (DTD) declaration. he root element of SVG is the
Table
.
.
SVG Viewers
Type
Products
Version SVG
Developer
Plug-in for IE
SVG Viewer
.
.
Adobe Systems, Inc.
SVG Viewer
.
beta
.
Adobe Systems,Inc.
Web browser
Firefox
.
.
Mozilla Corporation
Opera
.
.
Opera Sotware
JAVA application
Batik Squiggle
.
.
Apache Sotware Foundation