Hi Swami, > Am 23.12.2018 um 17:19 schrieb Sannyasin Brahmanathaswami via use-livecode > <use-livecode@lists.runrev.com>: > > From the dictionary and confirmed here: > -------- > *Important:* The crop command cannot be used on a > referenced image. Doing so will cause an > execution error. > --------- > > Also, today, I can't copy a referenced image? > > Again missing something simple... > > command createEmbedAndCrop Create image "gems"
## what about: put url("binfile:" & the filename of img "theImage") into img "gems" ## Or: ## Create image "gems" import paint from file (the filename of img "theImage") set the name of last img to "gems" > # set the loc of img "gems" to the loc of img "theImage" > # img "theImage" is referenced, now displayed in original format/rect > -- set the imagedata of img "gems" to the imagedata of image "theImage" > # doesn’t work > # -- set the text of img "gems" to the imagedata of image "theImage" > # also doesn't work > # from the dictionary. Also doesn’t work: > # put image "theImage" into image "gems" > # this works, but have no data in the image "gems" : > crop image "gems" to rect of grc "newCrop" > end createEmbedAndCrop Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode