Re: Cropping a referenced image

2018-08-16 Thread Bob Sneidar via use-livecode
If you want it to be even easier, get Trevor's sqlYoga! It's a bit of a learning curve, but the benefits are substantial. Virtually everything about connecting and querying a SQL database can be saved as a property of a button (called the dbObject). Even common queries that you use a lot, and re

Re: Cropping a referenced image

2018-08-16 Thread Sannyasin Brahmanathaswami via use-livecode
Yes I thank "Livecode" but really should thank Trevor for the code (Datagrid) behind my little handler. Suddenly going from dBase-query --> lcArray --> to a form with multiple controls became easy. I just hope it scrolls smoothly on Mobile (have yet to test it). On 8/15/18 6:57 AM, Trevor

Re: Cropping a referenced image

2018-08-15 Thread Trevor DeVore via use-livecode
On Wed, Aug 15, 2018 at 9:55 AM Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > We all asked for a table object that worked much like a spreadsheet, and > we got something much, much cooler, thanks to the work Trevor did. Greatly > appreciated Trevor! Prior to the datagrid,

Re: Cropping a referenced image

2018-08-15 Thread Bob Sneidar via use-livecode
We all asked for a table object that worked much like a spreadsheet, and we got something much, much cooler, thanks to the work Trevor did. Greatly appreciated Trevor! Prior to the datagrid, I would be hard pressed to write any kind of database application. Bob S > On Aug 15, 2018, at 07:27

Re: Cropping a referenced image

2018-08-15 Thread Sannyasin Brahmanathaswami via use-livecode
Sometimes LiveCode astounds me... Using Klause's method, plus Datagrid under the hood (and all its code) 1) the setting to Button icon to the size you want your image cropped, 120X74 2) Place an image off screen at +1000 to the right. 3) At 120x90 call it img "ytBtnIconTemplate" I was able to fi

Re: Cropping a referenced image

2018-08-14 Thread Sannyasin Brahmanathaswami via use-livecode
Klaus! Brilliant! and "too easy" to boot on mouseup put "https://i.ytimg.com/vi/KO3l3-4pFyo/default.jpg"; into tURL set the itemdel to "/"; put item -2 of tURL into tImageName clone img "ytBtnIconTemplate" as tImageName put th

Re: Cropping a referenced image

2018-08-14 Thread Stephen MacLean via use-livecode
> On Aug 14, 2018, at 12:18 PM, Stephen MacLean via use-livecode > wrote: > > set the text of checkImgID to empty > > export snapshot from rect (rect of cropRectID) of checkImgID to tTempCrop as > JPEG > > set the text of heroImgID to tTempCrop This should be this: > set the text of chec

Re: Cropping a referenced image

2018-08-14 Thread Stephen MacLean via use-livecode
> > > #test > > on mouseup > > put the long id of img "thumbTemplate" into pImage > > put the loc of pImage into pLocation > > set the filename of pImage to > "https://i.ytimg.com/vi/KO3l3-4pFyo/default.jpg";

Re: Cropping a referenced image

2018-08-14 Thread Klaus major-k via use-livecode
Hi Bob, > Am 14.08.2018 um 17:47 schrieb Bob Sneidar via use-livecode > : > > >> On Aug 14, 2018, at 08:03 , Klaus major-k via use-livecode >> wrote: >> >> set the height of btn "el croppo" to round(the width of img pImage/16*9) > > You are dancing perilously close to the boundaries of the

Re: Cropping a referenced image

2018-08-14 Thread Sannyasin Brahmanathaswami via use-livecode
Scott Rossi's Method in masking0ption.livecode. I can copy the group of an image (car) with ink:blendSrcOver and graphic ink:blendDstIn into another stack it appears fine. but as soon and I "touch" in group edited, even if you keep them ink params the same, I get not mask! (9.0.1 RC1) so...

Re: Cropping a referenced image

2018-08-14 Thread Bob Sneidar via use-livecode
> On Aug 14, 2018, at 08:03 , Klaus major-k via use-livecode > wrote: > > set the height of btn "el croppo" to round(the width of img pImage/16*9) You are dancing perilously close to the boundaries of the evil SpellCorrect. Bob S ___ use-livecod

Re: Cropping a referenced image

2018-08-14 Thread Klaus major-k via use-livecode
Hi Swami, > Am 14.08.2018 um 16:55 schrieb Sannyasin Brahmanathaswami via use-livecode > : > > [sending this again, because it was rolled in another thread/conversation by > the mail list} > > #test > > on mouseup > put the long id of img "thumbTemplate" into pImage > put the loc of pImage in

Cropping a referenced image

2018-08-14 Thread Sannyasin Brahmanathaswami via use-livecode
[sending this again, because it was rolled in another thread/conversation by the mail list} #test on mouseup put the long id of img "thumbTemplate" into pImage put the loc of pImage into pLocation set the filename of pImage to "https://i.ytimg.com/vi/KO3l3-4pFyo/default.jpg";

Cropping a Referenced image

2018-08-14 Thread Sannyasin Brahmanathaswami via use-livecode
#test on mouseup put the long id of img "thumbTemplate" into pImage put the loc of pImage into pLocation set the filename of pImage to "https://i.ytimg.com/vi/KO3l3-4pFyo/default.jpg"; --set the filename of pImage to "https://i.ytimg.com/vi/KO