Hi,

this is not really tested, but you can try to do the following

(installation)
a) install XMLParser from catalog
b) in monticello browser open Pharo/Athens and load latest version of
Athens-SVG package

(usage)
Then you import SVG XML using Converter and paint it on a surface, which
you convert to Form.

```
contents := (ZnEasy get: 'https://s.cdpn.io/3/kiwi.svg') contents.

xmlDoc := XMLDOMParser parse: contents.

svg := AthensSVGConverter new importXMLDocument: xmlDoc.
svg transform: 'scale(0.5)'.

extent := 500 @ 500.

surface := AthensCairoSurface extent: extent.
surface drawDuring: [ :aCanvas | svg renderOn: aCanvas ].
surface asForm.
```

[image: Inline image 1]

Peter

On Thu, Oct 5, 2017 at 1:50 PM, Steven R. Baker <ste...@stevenrbaker.com>
wrote:

> Heya folks!
>
> I need to load SVG images (for icons) in my application. I've searched
> my 6.1 image for SVG, but haven't found anything.
>
> Is there a library for loading SVGs? I'd really like to get them
> directly into instances of Form if possible, but I'm flexible. :)
>
> Thanks!
>
> -Steven
>
>
>
>

Reply via email to