# 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 |
| --- | :---: | :---: | --- |
| Sub | InitializedCallback | (None) | Delegate used with the Initialize method to signal the class is ready. |
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| Shared | Sub | g as graphics, svg as String, x1 as Double = 0, y1 as Double = 0, w1 as Double = -1, h1 as Double = -1, x2 as Double = 0, y2 as Double = 0, w2 as Double = -1, h2 as Double = -1 | |
| Shared | Sub | callback as InitializedCallback = nil | Initializes the control and calls the InitializedCallback delegate when ready. Required in the App.Opening Event Handler. |
| Shared | Function | data as String, width as Integer = 1000, height as Integer = 1000 | Renders and returns an image for the SVG data specified by the parameters. |
| Shared | Function | svg as String, width as Integer = -1, height as Integer = -1 | |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| Private | As | Nil | |
| Private | initTime | Double | |
| Private | instance | GraffitiSVG | |
| Private | As | = | |
| Private | mIsInitialized | Boolean | |
| Private | onInitialized | As | |
| Private | As | Nil | |
| Private | As | Nil | |
| Shared | As | Nil | |