Object is not an image when Crop command

Scott Rossi scott at tactilemedia.com
Mon May 10 14:04:41 EDT 2010


Recently, Devin Asay wrote:

> Crop only works with a rectangle. There may be others on the list who have
> figured out how to use an irregular shape as an image mask.

You can't.  You can only group the graphic and image and use combined ink
effects.  Very limiting.  You can see the Spotlight demo on this page as an
example:
<http://www.tactilemedia.com/site_files/software/tutorials.html>

Alternatively, you can set the backPattern of the graphic to the ID of the
image, but there's no control over how the image is positioned relative to
the graphic.  I imagine one could use the "hidden point" technique of a
polygon (adding a space before an after a point in the polygon's point list)
to establish left and top offsets for the backPattern, effectively
offsetting the image within the graphic.  But this will only work with
polygon graphics.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design





More information about the use-livecode mailing list