On 11/3/01 6:20 am, Scott Rossi <[EMAIL PROTECTED]> wrote:
> Is there any way in MC to mask/clip the display of an image so that only a
> portion of the image is visible?
>
> I'm trying to build a curved progress meter which was created as an
> antialised image. The only way I can think of making it "move" was to have
> an off (empty) state and an on (full) state and use type of masking to
> progressively display the on state above the off state.
>
> In SuperCard you can clip the display of an image (pictureData) by
> displaying it within a draw graphic, using any shape from a circle to a
> polygon. The only similar mechanism in MC that I'm aware of is setting the
> icon of a button, but apparently, MC only supports rectangular buttons and
> the contained image moves if the button is resized.
>
> So, any way to create a resizable mask for an image?
Yes, but only if the image is the of a width and height such that it can be
used as a pattern. You can set the backPattern property of a curve or
polygon and change the points. To recap on the rules for images used as
patterns:
Pattern images can be color or black-and-white. To be used on MacOS
systems, patterns must be 128x128 pixels or less, and both height and width
must be a power of 2. To be used on Windows and Unix systems, height and
width must be divisible by 8.
Regards,
Kevin
Kevin Miller <[EMAIL PROTECTED]> <http://www.runrev.com/>
Runtime Revolution Limited (formerly Cross Worlds Computing).
Tel: +44 (0)131 672 2909. Fax: +44 (0)1639 830 707.
Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.