On 29/06/2019 11:26 PM, Kenneth Sloan wrote:
> I need to draw a polyline on an ImageProcessor. I see drawPolygon(), but no drawPolyline().
> Is this intentional?
> Do I lose anything by writing my own to use multiple drawLine() calls?
> Kenneth Sloan
Once you have the xpoints and ypoints arrays, it's a 1 liner (not even worth declaring a method).
I guess I was just worried that there might be an optimization of the display at the vertices that I would miss out on. But, it looks fine, so I'm happy.
On a meta-level - this is an example of multiple (very minor) deviations from "orthogonal design" in the ImageJ API. One *could* use the ROI hack to draw Polygons, just as easily as Polylines. So, the purist in me would prefer to do BOTH using an ROI or to provide BOTH directly. One of each is just (mildly) confusing.
[hidden email] Vision is the art of seeing what is invisible to others.