[Use-revolution] Re: Re post - Masking graphics

Jeanne A. E. DeVoto jeanne at runrev.com
Mon Nov 26 01:14:01 EST 2001


At 4:49 PM -0800 11/24/2001, Ian Bridges wrote:
>I posted this a while ago with (surprisingly) no response...
>
>> is there a way to clip a picture to a region eg a polygon,
>> without assembling an array of masking graphics?
>
>I would like to be able to change the shape of the mask/clip region and the
>region of the underlying picture that is displayed with script control

There's currently no way of doing this that I know of. (Sorry.) I was
holding off on answering your first message in the hope that one of our
clever listmembers would come up with a method, but....

You could change the alphaData of the image to display only those portions
that you want seen, but of course that would require some fancy footwork
with determining algorithmically which pixels to blank and which to leave
alone. Your idea of assembling masking graphics might actually be simpler.

--
Jeanne A. E. DeVoto ~ jeanne at runrev.com
http://www.runrev.com/
Runtime Revolution Limited - Power to the Developer!





More information about the use-livecode mailing list