Skip to content

Load and create SVG documents in Xojo, you can render to Group2D or Picture.

License

Notifications You must be signed in to change notification settings

lbmonsalve/Xojo-SVGDocument

Repository files navigation

SVGDocument

Use SVG documents in Xojo. SVG is an XML document with special tags. You can load SVG files and render to Picture or Group2D objects. Also can create and manipulate SVG docs.

Example

'Load:
Dim svg As New SVGDocument(SpecialFolder.Documents.Child("Example.svg"))

'Render to picture:
Dim myPicture As Picture= svg.ToPicture

'Render to Group2D:
Dim myGroup As Group2D= svg.ToGroup2D

'You can use FolderItem extended methods:
Dim myFile As FolderItem= SpecialFolder.Documents.Child("Example.svg")
Dim svg As SVGDocument= myFile.OpenAsSVG

'or
Dim myPicture As Picture= myFile.OpenAsSVG

'or
Dim myGroup As Group2D= myFile.OpenAsSVG

Requirements

IDE From 2011r4 to 2019r3.1

How to incorporate

Copy SVGDocument folder to your project.

Thanks

Zoclee for examples and others stuffs.

About

Load and create SVG documents in Xojo, you can render to Group2D or Picture.

Resources

License

Stars

Watchers

Forks

Packages

No packages published