I’ll experiment. I suspect 1 pixel is too small to be seen on my new-ish macbook pro.
it would be nice to be able to set lower (and upper?) bounds on StrokeWidth instead of hard coded “1”, but that may not be worth the effort. Something like: setStrokeWidth(int min, int max) The old plugin is obsolete, so I won’t worry about it. The new one was written to work with HUGE images, and I’ve already modified it to diwnsize the overview image to reasonable size (keeping the original hidden but available for calculations which require full resolution. -Kenneth Sloan On Wed, Nov 6, 2024 at 08:11 Michael Schmid <[email protected]> wrote: > Hi Kenneth, > > if you have a strokeWidth of 0 or 1 for an overlay, the line remains > visible even when zoomed out to very low zoom levels like 4.2%. > With a strokeWidth of 0, the line always appears one screen pixel wide, > irrespective of magnification. > This may be a bit narrow for displays with very high resolution (in > pixels/inch), however. > > If you set a strokeWidth > 1 or any non-integer value, the line width is > scaled down with the image. Then, the line becomes weaker at low zoom > levels and may become (almost) invisible at very low zoom levels. > > Michael > ________________________________________________________________ > On 06.11.24 13:35, Kenneth R Sloan wrote: > > Thanks for the rapid reply. > > > > My current theory is that the overlay becomes invisible because of the > > downsizing done to fit the huge image on the screen. I’ll test this > later > > today. > > > > In the meantime, I implemented a “display” version of the huge image, > > keeping the original image hidden. > > > > It would be nice to have StrokeWidth specified in screen pixels, not > > shrinking (or expanding) as the image is scaled. but - this is probably > > not worth the trouble. > > > > My current scheme requires what I consider to be best practice: the > plugin > > works in “world coordinates”, and converts to raw pixels only at the last > > minute. > > > > -Kenneth Sloan > > > > -- > > ImageJ mailing list: http://imagej.nih.gov/ij/list.html > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html > -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html
