Understanding Image Sizes, Before And After Display

Klaus major-k klaus at major-k.de
Sun Dec 23 11:26:10 EST 2018


Hi Swami,

> Am 23.12.2018 um 17:19 schrieb Sannyasin Brahmanathaswami via use-livecode <use-livecode at 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
klaus at major-k.de





More information about the Use-livecode mailing list