Re: What resets "Line Width" ?
Posted by
Rasband, Wayne (NIH/NIMH) [E] on
Jul 31, 2010; 11:36pm
URL: http://imagej.273.s1.nabble.com/What-resets-Line-Width-tp3687411p3687413.html
On Jul 30, 2010, at 12:22 PM, Michael Schmid wrote:
> Hi Daniel,
>
> Image>Overlay>Add Selection takes the line width of the current roi
> that you add to the overlay. Obviously, this makes sense for line
> rois only - these can have a width>1.
>
> For me it would be also desirable that the overlay color in the
> dialog is remembered:
> That color defaults to the eyedropper foreground color. Usually I
> have black foreground for editing, but I would like to have a
> different default color for the overlays.
>
> So I would also perfer the dialog (as well as the dialog-less ALT-b
> command) to remember width and color.
>
> Michael
The 1.44e10 daily build fixes a bug that caused Image>Overlay>Add Selection to reset the line width. In addition, the Add Selection dialog now remembers the line width and color.
-wayne
> On 30 Jul 2010, at 17:09, Daniel W McDonald wrote:
>
>> Dear List,
>>
>>
>>
>> I set the line width in a macro with the run("Line Width. command.
>> And it
>> works as expected until I hit a shortcut key to execute another macro.
>>
>>
>>
>> The line width seems to get reset to the default line width after the
>> following macro is executed by its shortcut key.
>>
>>
>>
>> macro "enhanced_m2 [m]" {
>>
>> run("Set Measurements...", "area display redirect=None decimal=2");
>>
>> run("Measure");
>> //Update Results Table
>>
>> run("Add Selection...", "stroke=white width=2");
>> //Mark Measured Root
>>
>> ThisLabel = toString(nResults);
>>
>> getSelectionBounds(x1,y1, width, height);
>>
>> makeText(ThisLabel, x1+ width-2,y1+2);
>>
>> run("Add Selection...", "stroke=white font=12 fill=none");
>> //Label Root with ID
>>
>> run("Select None");
>>
>> updateResults();
>>
>>
>> }
>>
>>
>>
>> Do any of the above commands reset the line width?
>>
>> What other ImageJ events might reset the line width other than
>> explicitly
>> changing it?
>>
>>
>>
>> Thank you,
>>
>>
>>
>> Dan
>>
>>
>>
>> Daniel W. McDonald, President
>>
>> Phenotype Screening Corporation
>>
>> 4028 Papermill Rd, Suite 10
>>
>> Knoxville, TN 37909
>>
>> (865) 385-8641
>>
>>
>>
>> Our product, RootViz FS, was a 2007 R&D100 Award Winner. Rated as
>> one of the
>> 100 most technologically significant products introduced into the
>> marketplace in the prior year.
>>
>>