Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 867 Bytes

File metadata and controls

38 lines (25 loc) · 867 Bytes

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.