windowShape

Terence Heaford t.heaford at icloud.com
Mon Jul 20 02:20:59 EDT 2015


Thanks for your comments.

This seems the ideal way to do it allowing you to store your images in a central repository.

All the best

Terry


> On 19 Jul 2015, at 22:53, Scott Rossi <scott at tactilemedia.com> wrote:
> 
> You can reference an image in a substack for example, and in addition to setting the windowShape of the stack to the ID of the image, set the backPattern of the card of your mainstack to the same image ID.  You don’t need to worry about aligning/positioning images, and you will likely get better blending at the edges of the window. 
> 
> If you have any variable translucency in your source image, you’ll need to play with the backColor of the stack as this can “show through” the translucency of the card.
> 
> 



> On 20 Jul 2015, at 03:26, Todd Fabacher <tfabacher at gmail.com> wrote:
> 
> I find the bast way to set and show an image in a windowShape is use
> backgroundPattern.
> This way you do not need to worry about the image moving or not filling the
> screen. You can set it in the IDE or in code
> 
> set the backgroundPattern of *object* to {your* imageID*}




More information about the use-livecode mailing list