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