Text of an image

Eric Chatonet eric.chatonet at sosmartsoftware.com
Thu Sep 4 10:42:57 EDT 2008


Bonjour Jacque,

Just an add-up:

Let's say you are creating thumbnails using large referenced images  
(this means that your image object is locked with a lesser size).
    set the text of img 1 to url("binfile:" & <file path>) will  
display the image : OK.
And you'll be able to display it its original size in an unlocked  
image using the 'same text'.

If you add:
   set the imageData of img 1 to the imageData of img 1
This will fit the text of the image to its current locked size.
Many bytes saved :-)

Le 4 sept. 08 à 16:18, Rob Cozens a écrit :

> Hi Jacque,
>
>> What's the difference between the text of an image and its imageData?
>
> The imageData is the image as it is currently displayed; the image  
> text is the actual image as imported or referenced.  The imageData  
> changes when the image is resized; the image text does not.
>
> This means one loses image detail when referencing imageData of an  
> image that is not displayed full-size.
>
>
> Rob Cozens CCW
> Serendipity Software Company

Best regards from Paris,
Eric Chatonet.
----------------------------------------------------------------
Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: eric.chatonet at sosmartsoftware.com/
----------------------------------------------------------------





More information about the use-livecode mailing list