[Numpy-discussion] OT: How are SVG data converted into curves

Robert Kern robert.kern at gmail.com
Sat Oct 19 06:37:09 EDT 2013


On Thu, Oct 17, 2013 at 12:06 AM, David Goldsmith <d.l.goldsmith at gmail.com>
wrote:
>
> Does anyone on this list know how Scalable Vector Graphics C, S, etc.
command data are translated into curves (i.e., pixel maps) and might you be
willing to answer some questions off-list?  Thanks!

It's not clear if you are asking about how the SVG path command are parsed,
normalized, and interpreted into a path composed of vector primitives or
how those paths actually get rendered into pixels. If the former, you may
be interested in the svg.path package which does exactly that (and only
that). Most vector drawing libraries (Agg, the painting API of any
reasonable GUI toolkit) will be able to implement those primitives to draw
onto a pixel image.

  https://pypi.python.org/pypi/svg.path/

--
Robert Kern
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20131019/05029771/attachment.html>


More information about the NumPy-Discussion mailing list