Login  Register

Re: setting a line width for makeLine()

Posted by Wayne Rasband on Jun 05, 2007; 10:22pm
URL: http://imagej.273.s1.nabble.com/setting-a-line-width-for-makeLine-tp3699222p3699223.html

The makeLine() macro function in ImageJ 1.38u will accept an optional  
fifth argument that specifies the line width. For example.

     makeLine(100, 100, 300, 300, 10);

creates a straight line selection from (100,100) to (300,300) that is  
10 pixels wide.

-wayne

On Jun 5, 2007, at 3:49 PM, Michael Cammer wrote:

> Is there a way to set a line width for the makeLine() command from  
> within a macro?  I'd like to be able to define the width of the line  
> for a run("Plot Profile").
>
> Thanks!
> _______________________________________________________________________
> _____
> Michael Cammer   Analytical Imaging Facility   Albert Einstein Coll.  
> of Med.
> URL:  http://www.aecom.yu.edu/aif/