Also, how would you go about finding the outermost shape in the
region? I don't think
you can rely on comparing the results of the getBounds() functions; I
thought that there
was no guarantee on how closely the bounds will fit.
FWIW getBounds2D would probably be a better method to use. In practice
I think the bounds are calculated by determining the bounds of all
control points, so shape with some crazy beziers could potentially
exceed the bounds. However presumably the two "contour" paths in a
stroked shape would act similarly, so it probably isn't a big deal. I
agree it's not foolproof though.
Without having done any experimentation, my impression is that Chris is
right here - that the properties of outer and inner shapes will be
similar enough to each other such that their bounds will be "loose" in
relatively the same way and so their bounds will be a reasonable way to
compare which one is outermost.
If there are some very abnormal beziers in the curve that are causing
problems, though, then a bounds calculation of the points on the
flattened outline would be reasonably quick to compute and much less
problematic...
...jim
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".