Create image from SVG widget
Brian Milby
brian at milby7.com
Wed Sep 23 08:12:43 EDT 2020
It doesn’t require an actual file, just an XML document. I posted LCB code to convert the SVG path to what is needed for the compile. It will require an engine change or LCB to get the path translated to remove top/left extra space.
I think the best way would be to update one of the LCB libraries to include my handler and the add a handler to the drawing library that uses it to do the compile.
Now that I’m writing/thinking, it might could be done inside the LCB code with a call to the compile script.
Sent from my iPhone
> On Sep 23, 2020, at 3:19 AM, Klaus major-k via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> Hi all,
>
> FYI:
> I just created an enhancement request to make drawingSVGCompile also work
> internally with a widget: <https://quality.livecode.com/show_bug.cgi?id=22915>
>
>> Am 22.09.2020 um 10:08 schrieb Klaus major-k via use-livecode <use-livecode at lists.runrev.com>:
>> Hi Brian,
>>>> Am 22.09.2020 um 05:38 schrieb Brian Milby via use-livecode <use-livecode at lists.runrev.com>:
>>>
>>> Here's a link to the post in the archives:
>>> http://lists.runrev.com/pipermail/use-livecode/2018-September/250326.html
>>>
>>> I could get close, but still needed to work out a way to translate the path
>>> to improve upon what was already discussed. (I can get the actual bounding
>>> box, but it doesn't really help with eliminating the need to use the cropIt
>>> handler.)
>> ...
>
> 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