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

Ken Ray kray at sonsothunder.com
Tue Nov 27 15:25:01 EST 2001


Scott,

Perhaps a future version of MC could allow for the repeat feature of the
backPattern to be turned off? That would provide a lot more flexibility in
doing these kinds of things and it might even be an easy addition to the
language.

Just my $0.02,

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/


----- Original Message -----
From: "Scott Raney" <raney at metacard.com>
To: <use-revolution at www.runrev.com>
Sent: Tuesday, November 27, 2001 12:59 PM
Subject: Re: Re post - Masking graphics


> On Mon, 26 Nov 2001 Scott Rossi <scott at tactilemedia.com> wrote:
> >
> > Recently, Ian Bridges wrote:
> >
> > > 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
> >
> > The only way I'm aware of will allow rectangular clips only: display
your
> > source image in a group or a button, and then change the group's or
button's
> > rect.  I believe there's no built-in way to create oval or irregular
masks.
>
> Correct, but there is another way to do this, set the backPattern of a
> filled graphic object.  Note that the image repeats if your graphic is
> larger than the image, and that there are restrictions on the possible
> sizes of the image (e.g., on the Mac it has to be a power of 2 in both
> width and height and must be less than 64K bytes total).  But at least
> on NT/2000/XP and UNIX systems you can do a lot with this feature.
>   Regards,
>     Scott
>
> > Regards,
> >
> > Scott
> >
> > _____________________________________________________________________
> > Scott Rossi                       Tactile Media - Multimedia & Design
> > Creative Director                 Email: scott at tactilemedia.com
> >                                   Web: www.tactilemedia.com
> >
>
> ********************************************************
> Scott Raney  raney at metacard.com  http://www.metacard.com
> MetaCard: You know, there's an easier way to do that...
>
>




More information about the use-livecode mailing list