BizTalk Utilities CV ,   Jobs ,   Code library
 
Home Page


Add/Edit your code items
Search the code library
Browse for the code library


XSLT
XML to CSV using XSLT
Cross-Browser display of XML/XSL
Cross Reference Lookup in XSLT using XML file as Xref table
Recursion reminds me of Recursion (9 XSLT Recursion examples)
XSLT Sort - output entire xml file with new sort order
Variable Variables
Cross Reference Lookup in XSLT using embedded XML
XTrans 1.0
XML Explorer 2.5
Create an N-Column Table from XML node-set
XSLT Select Option Example
XSLT Date filtering, sorting, comparing, and evaluating
XSLT Template for HTML INPUT Tag
XSLT Template for HTML IMG Tag
XSLT Search and Replace Template
Word wrap and text replace templates for XSLT
nxslt 1.3
Visual XPath
xframe - xsddoc
-xsl-fo-->-pdf--making-an-e-book/documentation.aspx>BIBLE PDF from (xml & xsl)-> xsl-fo -> pdf ; Making an E-book/documentation


 
 

<< XQuery.NET and XML >>


By Andrew Girow
First Posted 05/07/2003
Times viewed 880

Basic Shapes to Paths with TinyLine


This post contains attachments
v20030507064436.zip 

Summary In some cases, espessially if you want to reduce a number of SVG objects and simplify an SVG object model, it has a sence to provide a server side "SVG Basic Shapes to Paths" conversion.

Basic Shapes to Paths conversion is a well-known industry approach. If you take a look, for example, at the Adobe Illustrator, you will see, that when you create a circle, in fact you create a path. SVG 1.1 also mentioned that: Mathematically, these shape
elements are equivalent to a 'path' element that would construct the same shape.

The more detailed information about the SVG Model reduction and different
transcoding schemes along with the source code you will find at
http://www.tinyline.com/svgm/svgminute/index.html or you can download it from

http://www.tinyline.com/svgm/download/svgminute.zip

As an example, lets see what we can do with the SVG Circle element.
The 'circle' element defines a circle based on a center point (cx, cy) and a
radius r.
The following file consists of a 'circle' element that is filled with
red and stroked with blue.
http://www.tinyline.com/svgm/svgminute/svg-t/shapes-circle-01-t.svg

The same file that is transcoded by the server:
http://www.tinyline.com/svgm/svgminute/svg-m/shapes-circle-01-t.svg


As you can see both files produce the same geometry and the same picture.

Below is the source code of the TinyPath class that produces
Basic Shapes to Paths conversion

Additional information


Rate this article on a scale of 1 to 10 (0 votes, average 0)

Your vote :  

<< XQuery.NET and XML >>





Leave a comment for this article
Your name
Your email (optional)
Your comment
Optional: Upload an attachment
Enter the code shown:

 
 

    Email TopXML