Login  Register

getBounds of "thick" lines

Posted by Joachim Wesner on Feb 08, 2008; 4:12pm
URL: http://imagej.273.s1.nabble.com/opening-images-of-vod-format-tp3697247p3697248.html

Hi list,

I just found out that the bounding rectangle of a "thick" line selection
(linewidth > 1) does not seem to take account the extra width, it only
returns the rectangle spanned by the the center points.

line.contains() does work correctly (the way I expect it) instead, by
calling getPolygon().contains(x, y) if width > 1

Would also calling getPolygon().getbounds(x, y) in line.getbounds() fix
this? Should this be changed?

Sincerely

Joachim Wesner



______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________