# GraffitiSVG
Class Inherits GraffitiSuite.BaseObject
## About
GraffitiSVG provides an API for rendering SVG to Xojo Picture objects.
## Preview

Previous
Next
## Warnings
### Linux Support
Support varies by Linux distribution and installed libwebkit library and version.
### Windows Support
Requires the presence of a DesktopHTMLViewer on a window or container within the project.
## Delegates
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| InitializedCallback | (None) | (None) | Delegate used with the Initialize method to signal the class is ready. |
## Shared Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| DrawSVG | g as graphics <br> svg as String <br> x1 as Double = 0 <br> y1 as Double = 0 <br> w1 as Double = -1 <br> h1 as Double = -1 <br> x2 as Double = 0 <br> y2 as Double = 0 <br> w2 as Double = -1 <br> h2 as Double = -1 | (None) | (None) |
| Initialize | callback as InitializedCallback = nil | (None) | Initializes the control and calls the InitializedCallback delegate when ready. Required in the App.Opening Event Handler. |
| Render | data as String <br> width as Integer = 1000 <br> height as Integer = 1000 | Picture | Renders and returns an image for the SVG data specified by the parameters. |
| ToPicture | svg as String <br> width as Integer = -1 <br> height as Integer = -1 | Picture | (None) |
## Shared Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| IsInitialized | Boolean | (None) | (None) |