Create image from SVG widget

Brian Milby brian at milby7.com
Mon Sep 21 17:03:18 EDT 2020


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.


On Mon, Sep 21, 2020 at 4:41 PM Klaus major-k via use-livecode <
use-livecode at lists.runrev.com> wrote:

> Hi Mark,
>
> > Am 21.09.2020 um 22:31 schrieb Mark Wieder via use-livecode <
> use-livecode at lists.runrev.com>:
> > On 9/21/20 12:57 PM, Klaus major-k via use-livecode wrote:
> >> Hi friends,
> >> I need a little hint, I forgot what command creates an image
> >> from an SVG widget. 8-)
> >> ...
> >> set the text of img 1 to ???(???)
> >> ...
> >> Thanks for any hint!
> >
> > Dunno.
>
> very helpful, thank you. :-D
>
> > I export a snapshot from the widget.
> >
> > --
> > Mark Wieder
> > ahsoftware at gmail.com
>
> Best
>
> Klaus
>
> --
> Klaus Major
> https://www.major-k.de
> klaus at major-k.de
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list