Code: Select all
set the text of image "test" to drawingSvgCompile(url ("file:test.svg"))
Code: Select all
set the text of image "test" to drawingSvgCompile(url ("file:test.svg"))
Yes, it does - but to be clear, this isn't an SVG I created - one that comes from another app which is in the main package repositories. I purposefully chose this one (as others will render fine), but I wanted to show everyone that although this method exists, it's not perfect. - obviously can't understand all the nuances of SVG files.
Yeah you are late, this has been discussed on these forums several times previously, this particular method was built into the image object (which I think was a mistake to not make it separate from 'image' in a new 'SVG control' object).tperry2x wrote: ↑Sat Dec 07, 2024 9:17 pm I apologise if I'm drastically late to the party, but I didn't realise I could load colour SVGs in with:It's not perfect, but at least loads things in colour:Code: Select all
set the text of image "test" to drawingSvgCompile(url ("file:test.svg"))
demo.png
drawingSVGTest.7z
If you look at the revMenuBar source scripts you can see it is exactly the same method, which is that it uses the Drawing Library (which additionally relies on engine code changes that were made in the 'image controls' objects in order to add the color SVG support).richmond62 wrote: ↑Sun Dec 08, 2024 9:50 am I wonder how that compares with importing the same SVG image via the menu?
Users browsing this forum: No registered users and 0 guests