You're quite right, Jon - I'd completely forgotten that reverse order could cut out from a shape.
Ian On 10/24/07, Jon Bradley <[EMAIL PROTECTED]> wrote: > > Creating multiple versions of an image is a bit much on the overhead. > Plus, you don't have the capability of doing a white wash, or dark wash, or > custom color overlay for the crop. > > In my applications I've written a an 'overlay' class. It's is a filled > rectangle drawn in clockwise fashion, with an inner rectangle drawn in > reverse order (matching the crop box transformation). > > This is pretty easy to do. Just write a new function that will draw a > rectangle in reverse order (counter-clockwise) and do something like the > following: > > overlay.beginFill() > overlay.drawRect( image rectangle, false); // where false means draw > normal, or clockwise > overlay.drawRect( crop rectangle, true) // draw it reverse making a hole > overlay.endFill() > > So, in short, don't use another image because you'll overcomplicate > things, imho. > > Use reverse fills as holes since it's faster and gives you more > flexibility on the look. > > Anz --- any possibility we can take a look at your version of the > picnic-style crop tool? >

