> On Oct 29, 2018, at 5:40 PM, Aleksandr Mironov <
[hidden email]> wrote:
>
>
> Dear Listers,
>
> Recently I have found that macro function setLineWidth() does not work properly with overlays if I try to use value "1". In this case it reverts to line width set by double clicking on "Straight Line". If value is anything apart 1 then setLineWidth() works fine with Overlay.drawLine().
>
> I am attaching the macro demonstrating the effect with Overlay.drawLine() in comparison with drawLine(). To see the effect, please, set first default line width (by double clicking on "Straight Line") to 1 and then to bigger number.
This bug is fixed in the latest ImageJ daily build (1.52i22). A macro that reproduces the problem is below.
-wayne
newImage("Untitled", "RGB ramp", 512, 512, 1);
setColor("red");
setLineWidth(0);
Overlay.drawLine(0, 50, 512, 50);
Overlay.add;
setLineWidth(1);
Overlay.drawLine(0, 100, 512, 100);
Overlay.add;
setLineWidth(2);
Overlay.drawLine(0, 150, 512, 150);
Overlay.add;
setLineWidth(4);
Overlay.drawLine(0, 200, 512, 200);
Overlay.add;
Overlay.show;
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html