Hi,

If the same images have the same size everywhere, please don't do that. You'd 
be using lots of memory for no reason.

Just use buttons and set the icon of the buttons to the id of the images.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour 
spaces. http://www.color-converter.com

We have time for new software development projects. Contact me for a quote.




On 16 nov 2012, at 00:28, Paul Hibbert wrote:

> Hi Peter,
> 
> If I understand you correctly, you would need to build a repeat loop to work 
> through your images with something like…
> 
>     set the imageData of img "extRefImage" to the imageData of img "intImage"
> 
> Beware if your images are scaled, that will affect the imageData, they need 
> to be the same size.
> 
> If the referenced images are identical to the internal images, you maybe 
> didn't need to re-import them as controls, just…
> 
>     set the imageData of img "A" to the imageData of img "A"
> 
> this will convert a referenced image to an an internal image at the size it 
> is displayed, but if they are scaled images, try…
> 
>  lock screen
> 
>  ## Record the size and position of the image
>  put the width of img "imageX" into tWidth
>  put the height of img "imageX" into tHeight
>  put the loc of img "imageX" into tLoc
> 
>  ## Convert Ref image to Internal image
>  set the width of img "imageX" to the formattedWidth of img "imageX"
>  set the height of img "imageX" to the formattedHeight of img "imageX"
>  set the imageData of img "imageX" to the imageData of img "imageX"
> 
>  ## Re-set the size and position of the image
>  set the width of img "imageX" to tWidth
>  set the height of img "imageX" to tHeight
>  set the loc of img "imageX" to tLoc
> 
>  unlock screen
> 
> Hope this helps.
> 
> Paul
> 


_______________________________________________
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

Reply via email to