Can I draw a line (or better any polygon) directly on screen?

Scott Rossi scott at tactilemedia.com
Thu Jul 10 21:54:01 EDT 2003


Recently, Ken Norris wrote:

>> 2) Using the windowShape property, set the stack to be totally
>> transparent (you can do this by using an image which is totally
>> transparent as the 'shape' for the windowShape property).
> snip
> 
> How? I couildn't get any of my paint programs, or even Photoshop, to make a
> transparent PNG image of nothing.

In Photoshop, create a new file of the dimensions you want with a single
empty layer.  If the file has a background layer, delete it.  You should now
see the checkerboard pattern in the document window.  Choose "Save for
Web..." from the File menu as GIF with transparency enabled.

Keep in mind it's not necessary to create a totally transparent image for a
windowShape source image described above: the opaque portion of the image
can be hidden outside the rect of the window region (ie, your stack is
100x100, but your source image is 120x100).

Regards,

Scott Rossi
Creative Director

Tactile Media, Multimedia & Design
Email: scott at tactilemedia.com
Web: www.tactilemedia.com




More information about the use-livecode mailing list