|
The behavior of ip.setLineWidth() in ij 1.41+ seems to have changed, and
it appears to me be a bug. I have a plugin that draws a "raster" plot using:
ip.setLineWidth(lw)
ip.setColor(color)
ip.moveTo(x0, y0)
followed by a series of ip.lineTo(x,y) calls to draw the raster
The value of lw is computed dynamically in my plugin, but it is
typically 3 or 4 in my test cases. Prior to ij 1.41, the output of the
plugin looks great. Using ij 1.41 and newer (at least up to 1.42d), any
value of lw greater than 2 (testing empirically) begins to behave
erratically -- it is almost as if the line width jumps from being 2 to
being "very" large such that it washes out the entire image. I haven't
looked for the change in the source code that leads to this change in
behavior, but if it isn't obvious what has changed to the maintainers, I
can look into it next week some time (in the meantime, I might be able
to provide either screenshots or the minimal snippet of sample code to
reproduce the problem).
FYI: In my testing, I am not recompiling my plugin against the different
versions of ij.jar; I am simply swapping ij.jar while keeping all of the
other compiled code "constant". I checked ij.jar versions: 1.38, 1.39,
1.40, 1.41, and 1.42d. The problem first arises with version 1.41, and
it isn't resolved in 1.42d.
Thanks,
-Woody
|