# SVG support?

**URL:** <https://forum.xojo.com/t/svg-support/8693>\
**Category:** General\
**Created:** [June 9, 2013, 8:12am UTC](https://forum.xojo.com/t/svg-support/8693 "2013-06-09T08:12:31Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![Eduardo\_Gutierrez\_de\_Oliveira](https://forum.xojo.com/user_avatar/forum.xojo.com/eduardo_gutierrez_de_oliveira/32/264_2.png) [@Eduardo\_Gutierrez\_de\_Oliveira](https://forum.xojo.com/u/Eduardo_Gutierrez_de_Oliveira)\
**Post date:** [June 30, 2014, 3:23pm UTC](https://forum.xojo.com/t/svg-support/8693/42 "2014-06-30T15:23:02Z")

</div>

[quote=106176:@Karen Atkocius]It has not been to date… I checked both the docs and the deprecation page on teh website… Where did you hear that?

If Xojo Inc decides to do that, it would be a big problem!!!

- Karen[/quote]

To be honest, I might have had that misunderstood back from when PICT was first said to be deprecated. I’ve been using fonts for vector graphics for so long I haven’t revisited Object2D in a while.

---

<div class="post-metadata">

**Author:** ![Joe\_Ranieri](https://forum.xojo.com/letter_avatar_proxy/v4/letter/j/43a26b/32.png) [@Joe\_Ranieri](https://forum.xojo.com/u/Joe_Ranieri)\
**Post date:** [June 30, 2014, 4:37pm UTC](https://forum.xojo.com/t/svg-support/8693/43 "2014-06-30T16:37:13Z")

</div>

> [@106123:@Eduardo Gutierrez de Oliveira](#):
>
> I had read somewhere that Object2D was being deprecated.

It is not.

---

<div class="post-metadata">

**Author:** ![Mike\_Cotrone](https://forum.xojo.com/user_avatar/forum.xojo.com/mike_cotrone/32/19940_2.png) [@Mike\_Cotrone](https://forum.xojo.com/u/Mike_Cotrone)\
**Post date:** [August 13, 2014, 12:41pm UTC](https://forum.xojo.com/t/svg-support/8693/44 "2014-08-13T12:41:27Z")

</div>

I just voted for this case (10931) and is now ranked #20. Thanks all!

---

<div class="post-metadata">

**Author:** ![Ian\_Jones](https://forum.xojo.com/user_avatar/forum.xojo.com/ian_jones/32/2076_2.png) [@Ian\_Jones](https://forum.xojo.com/u/Ian_Jones)\
**Post date:** [August 14, 2014, 8:59am UTC](https://forum.xojo.com/t/svg-support/8693/45 "2014-08-14T08:59:47Z")

</div>

Added it as my second “Top Case”, now ranked 17th!

---

<div class="post-metadata">

**Author:** ![Peter\_Fargo](https://forum.xojo.com/user_avatar/forum.xojo.com/peter_fargo/32/977_2.png) [@Peter\_Fargo](https://forum.xojo.com/u/Peter_Fargo)\
**Post date:** [August 14, 2014, 9:21am UTC](https://forum.xojo.com/t/svg-support/8693/46 "2014-08-14T09:21:36Z")

</div>

+1

Now 15th

---

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [August 14, 2014, 9:45am UTC](https://forum.xojo.com/t/svg-support/8693/47 "2014-08-14T09:45:45Z")

</div>

+1 – 12th !

---

<div class="post-metadata">

**Author:** ![Mike\_Cotrone](https://forum.xojo.com/user_avatar/forum.xojo.com/mike_cotrone/32/19940_2.png) [@Mike\_Cotrone](https://forum.xojo.com/u/Mike_Cotrone)\
**Post date:** [August 14, 2014, 12:10pm UTC](https://forum.xojo.com/t/svg-support/8693/48 "2014-08-14T12:10:03Z")

</div>

Awesome everyone!!! This is a must need for properly working with images.

---

<div class="post-metadata">

**Author:** ![Alwyn\_Bester](https://forum.xojo.com/user_avatar/forum.xojo.com/alwyn_bester/32/23099_2.png) [@Alwyn\_Bester](https://forum.xojo.com/u/Alwyn_Bester)\
**Post date:** [August 14, 2014, 12:14pm UTC](https://forum.xojo.com/t/svg-support/8693/49 "2014-08-14T12:14:00Z")

</div>

Absolutely… and a great choice for cross platform environments.

---

<div class="post-metadata">

**Author:** ![Christian\_Schmitz](https://forum.xojo.com/user_avatar/forum.xojo.com/christian_schmitz/32/158_2.png) [@Christian\_Schmitz](https://forum.xojo.com/u/Christian_Schmitz)\
**Post date:** [August 14, 2014, 1:06pm UTC](https://forum.xojo.com/t/svg-support/8693/50 "2014-08-14T13:06:49Z")

</div>

wow 🙂

---

<div class="post-metadata">

**Author:** ![Brock\_Nash](https://forum.xojo.com/user_avatar/forum.xojo.com/brock_nash/32/1126_2.png) [@Brock\_Nash](https://forum.xojo.com/u/Brock_Nash)\
**Post date:** [August 14, 2014, 4:39pm UTC](https://forum.xojo.com/t/svg-support/8693/51 "2014-08-14T16:39:16Z")

</div>

# +1 10th

With the move into retina screens and Web Applications vector images just makes sense.

---

<div class="post-metadata">

**Author:** ![Norman\_P](https://forum.xojo.com/letter_avatar_proxy/v4/letter/n/858c86/32.png) [@Norman\_P](https://forum.xojo.com/u/Norman_P)\
**Post date:** [August 14, 2014, 5:06pm UTC](https://forum.xojo.com/t/svg-support/8693/52 "2014-08-14T17:06:36Z")

</div>

Honestly anyone could write this  
SVG is just XML and anyone can read / write object2ds to / from XML

The things we tend to put in the framework is stuff that users can’t do for themselves  
Or can’t do without massive hacks that would be fragile

The Tiny SVG spec is really something that can be done today by any of you  
Or group of you

---

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [August 14, 2014, 5:09pm UTC](https://forum.xojo.com/t/svg-support/8693/53 "2014-08-14T17:09:13Z")

</div>

[quote=120790:@Norman Palardy]Honestly anyone could write this  
SVG is just XML and anyone can read / write object2ds to / from XML

The things we tend to put in the framework is stuff that users can’t do for themselves  
Or can’t do without massive hacks that would be fragile

The Tiny SVG spec is really something that can be done today by any of you  
Or group of you[/quote]

Maybe. But would it not be nice to have that built in like PICT in the past ? Especially with direct generation of a 2D.

---

<div class="post-metadata">

**Author:** ![Norman\_P](https://forum.xojo.com/letter_avatar_proxy/v4/letter/n/858c86/32.png) [@Norman\_P](https://forum.xojo.com/u/Norman_P)\
**Post date:** [August 14, 2014, 5:20pm UTC](https://forum.xojo.com/t/svg-support/8693/54 "2014-08-14T17:20:28Z")

</div>

It’d be nice to have a lot of things built in.  
But the reality is that we do have to pick & choose what we do / don’t put into the product and frameworks.  
Everything we add has a cost in supporting it.  
When the answer is “anyone could write this” that tends to push its possibility & priority of making it into the framework lower because “anyone could write this”.

---

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [August 14, 2014, 5:22pm UTC](https://forum.xojo.com/t/svg-support/8693/55 "2014-08-14T17:22:46Z")

</div>

[quote=120805:@Norman Palardy]It’d be nice to have a lot of things built in.  
But the reality is that we do have to pick & choose what we do / don’t put into the product and frameworks.  
Everything we add has a cost in supporting it.  
When the answer is “anyone could write this” that tends to push its possibility & priority of making it into the framework lower because “anyone could write this”.[/quote]

Tell you what. If it is so terribly easy, why not give us mere mortals some sample code to go on ?

---

<div class="post-metadata">

**Author:** ![Norman\_P](https://forum.xojo.com/letter_avatar_proxy/v4/letter/n/858c86/32.png) [@Norman\_P](https://forum.xojo.com/u/Norman_P)\
**Post date:** [August 14, 2014, 5:25pm UTC](https://forum.xojo.com/t/svg-support/8693/56 "2014-08-14T17:25:52Z")

</div>

[code]Dim xmlFile As FolderItem  
xmlFile = GetOpenFolderItem("")

If xmlFile \<\> Nil Then  
Try  
Dim xml As New XmlDocument(xmlFile)  
Catch e As XmlException  
MsgBox("XML error: " + e.Message)  
End Try  
End If

// now parse the XML from the SVG into O2D  
// based on a subset of [http://www.w3.org/TR/SVGTiny12/](http://www.w3.org/TR/SVGTiny12/) ( see sec 9)  
// left as an exercise for the reader 🙂  
[/code]

---

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [August 14, 2014, 5:40pm UTC](https://forum.xojo.com/t/svg-support/8693/57 "2014-08-14T17:40:16Z")

</div>

[quote=120810:@Norman Palardy][code]Dim xmlFile As FolderItem  
xmlFile = GetOpenFolderItem("")

If xmlFile \<\> Nil Then  
Try  
Dim xml As New XmlDocument(xmlFile)  
Catch e As XmlException  
MsgBox("XML error: " + e.Message)  
End Try  
End If

// now parse the XML from the SVG into O2D  
// based on a subset of [http://www.w3.org/TR/SVGTiny12/](http://www.w3.org/TR/SVGTiny12/) ( see sec 9)  
// left as an exercise for the reader 🙂  
[/code][/quote]

Thank you Norman 🙂

---

<div class="post-metadata">

**Author:** ![KarenA](https://forum.xojo.com/letter_avatar_proxy/v4/letter/k/c89c15/32.png) [@KarenA](https://forum.xojo.com/u/KarenA)\
**Post date:** [August 14, 2014, 5:47pm UTC](https://forum.xojo.com/t/svg-support/8693/58 "2014-08-14T17:47:22Z")

</div>

Norm,

Xojo is supposed to be a RAD environment, and Xplatform support for vector pictures is something commonly needed… and higher density displays are going to make them real necessity for a RAD environment soon.

Not everyone has the time to learn the spec and do it. And community projects rarely have long term support and many users are not that connected to the community. Also non-obvious changes in Xojo could break such things. Such a basic need should to be subject to all that and in any case should be integrated into the framework to be co-equal with teh other picture formats in Xojo picture APIs.

So an Xplatform vector picture format that at least SOME other apps also support is something that most definitely belongs in the framework IMO, and obviously many others think so.

---

<div class="post-metadata">

**Author:** ![Norman\_P](https://forum.xojo.com/letter_avatar_proxy/v4/letter/n/858c86/32.png) [@Norman\_P](https://forum.xojo.com/u/Norman_P)\
**Post date:** [August 14, 2014, 5:59pm UTC](https://forum.xojo.com/t/svg-support/8693/59 "2014-08-14T17:59:52Z")

</div>

I think you misread me if you thought I said it won’t make it there or its not needed  
I wouldn’t fundamentally disagree that it could make its way there

What I said is IF you need this TODAY you can write it without any intervention/assistance from us  
Nothing more - nothing less

---

<div class="post-metadata">

**Author:** ![Mike\_Cotrone](https://forum.xojo.com/user_avatar/forum.xojo.com/mike_cotrone/32/19940_2.png) [@Mike\_Cotrone](https://forum.xojo.com/u/Mike_Cotrone)\
**Post date:** [August 14, 2014, 6:23pm UTC](https://forum.xojo.com/t/svg-support/8693/60 "2014-08-14T18:23:05Z")

</div>

Norman I just saw your posting on the code snippet and that look interesting. Thank you for sharing!!

---

<div class="post-metadata">

**Author:** ![Norman\_P](https://forum.xojo.com/letter_avatar_proxy/v4/letter/n/858c86/32.png) [@Norman\_P](https://forum.xojo.com/u/Norman_P)\
**Post date:** [August 14, 2014, 6:40pm UTC](https://forum.xojo.com/t/svg-support/8693/61 "2014-08-14T18:40:08Z")

</div>

SVG is just opening an XML document then walking through the nodes  
They represent various objects + properties and you can create a picture & attach all the object 2d’s that correspond to it (or not)

[Previous page](https://forum.xojo.com/t/svg-support/8693.md?page=2)

[Next page](https://forum.xojo.com/t/svg-support/8693.md?page=4)
