Re: Create image from SVG widget

2020-09-23 Thread Brian Milby via use-livecode
If it is placed in a library that is distributed with the IDE, then you wouldn’t need to worry about the LCB side of it. If it is easy enough to translate a path in the compile code, LCB wouldn’t be needed at all. I just didn’t spend enough time to figure it out. Sent from my iPhone > On Sep

Re: Create image from SVG widget

2020-09-23 Thread Klaus major-k via use-livecode
Hi Brian, > Am 23.09.2020 um 14:12 schrieb Brian Milby via use-livecode > : > > It doesn’t require an actual file, just an XML document. yes, I understood that already. 8-) > I posted LCB code to convert the SVG path to what is needed for the compile. > It will require an engine change or

Re: Create image from SVG widget

2020-09-23 Thread Brian Milby via use-livecode
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 librar

Re: Create image from SVG widget

2020-09-23 Thread Klaus major-k via use-livecode
Hi all, FYI: I just created an enhancement request to make drawingSVGCompile also work internally with a widget: > Am 22.09.2020 um 10:08 schrieb Klaus major-k via use-livecode > : > Hi Brian, >> Am 22.09.2020 um 05:38 schrieb Brian Milby via

Re: Create image from SVG widget

2020-09-22 Thread Klaus major-k via use-livecode
Hi Brian, > Am 22.09.2020 um 05:38 schrieb Brian Milby via use-livecode > : > > 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 upo

Re: Create image from SVG widget

2020-09-21 Thread Brian Milby via use-livecode
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 he

Re: Create image from SVG widget

2020-09-21 Thread Brian Milby via use-livecode
You do not need a file, but you do need additional code. I found a handler from a Sep 2018 thread that wraps a path to form the input needed for the compile. LC Mark mentioned an internal call that could enhance the process but I didn’t see any code that leveraged it. Let me take a crack at i

Re: Create image from SVG widget

2020-09-21 Thread Klaus major-k via use-livecode
Hi Brian > Am 21.09.2020 um 23:03 schrieb Brian Milby via use-livecode > : > > 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 th

Re: Create image from SVG widget

2020-09-21 Thread Brian Milby via use-livecode
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 t

Re: Create image from SVG widget

2020-09-21 Thread Klaus major-k via use-livecode
Hi Mark, > Am 21.09.2020 um 22:31 schrieb Mark Wieder via use-livecode > : > 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 ???(???) >> ... >> T

Re: Create image from SVG widget

2020-09-21 Thread Mark Wieder via use-livecode
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. I export a snapshot from the widget. -- Mark Wieder ahsoftw...@g