Create image from SVG widget

Klaus major-k klaus at major-k.de
Mon Sep 21 17:07:56 EDT 2020


Hi Brian

> Am 21.09.2020 um 23:03 schrieb Brian Milby via use-livecode <use-livecode at lists.runrev.com>:
> 
> This may be what you're looking for:
> 
> put drawingSvgCompile(tFileText) into tDrawing
> set the text of image "svgImage" to tDrawing
> http://forums.livecode.com/viewtopic.php?f=10&t=30441#p163024
> The stack in the forum post will let you see the difference in how a
> particular svg file is rendered in the browser widget, as a SVG path
> (widget), and as a SVG Compiled Drawing (image).  There is some additional
> code available that will translate the path (effectively trim extra space
> around the image) that I have not incorporated.

thank you!

But I thought we could do this from a SVG widget without the need of a .svg FILE.
Was I dreaming?

Best

Klaus

--
Klaus Major
https://www.major-k.de
klaus at major-k.de





More information about the use-livecode mailing list