drawing a dotted line

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

drawing a dotted line

Francesco De Comite
Hi,

I would like to draw lines, using ImageProcessor method drawLine(...).
Is there some method for defining the line style,
something like setLineStyle(DOTTED) ?

Thanks

--


Francesco De Comite
tel (33) 03 28 77 85 72
fax (33) 03 28 77 85 37
www.lifl.fr/~decomite
Reply | Threaded
Open this post in threaded view
|

Re: drawing a dotted line

Rasband, Wayne (NIH/NIMH) [E]
On Sep 30, 2010, at 8:55 AM, Francesco.Decomite wrote:

> Hi,
>
> I would like to draw lines, using ImageProcessor method drawLine(...).
> Is there some method for defining the line style,
> something like setLineStyle(DOTTED) ?

You can draw dotted and dashed lines using Java2D. There is an example at

    http://imagej.nih.gov/ij/plugins/dotted-line.html

-wayne