Login  Register

makeLine w/ center coord rather than x1,y1,x2,y2?

Posted by Barton, Robert on Jul 17, 2007; 8:19pm
URL: http://imagej.273.s1.nabble.com/makeLine-w-center-coord-rather-than-x1-y1-x2-y2-tp3698838.html

Hi everyone,

I'm guessing this will be a quick "No", but I figured I'd try asking
anyways...

When writing a macro, is it possible to draw a line based upon the center
point of that line?  IOW, rather than using makeLine(156,197,356,197),
could I create a line by specifying the center point (256,197 in this case)
and then specifying how long the line should be?

Thanks.