Re: draw circle
Posted by
Sami Badawi-2 on
Jun 02, 2008; 10:59am
URL: http://imagej.273.s1.nabble.com/draw-circle-tp3687441p3687444.html
Hi Alessandra,
Here is a suggestion:
1: Change the type of the gray image to a color image, that should
make the input to your plugin a ColorProcessor.
2: ColorProcessor has a method: setColor(java.awt.Color color), use
that to set the color.
3: ImageProcessor / ColorProcessor has a drawOval(int x, int y, int
width, int height), use that to draw the circle, by setting width =
height.
4: Save the image.
-Sami Badawi
http://www.shapelogic.orgOn Mon, Jun 2, 2008 at 4:43 AM, alessandra griffa
<
[hidden email]> wrote:
> Hi!
>
> I am new with ImageJ plugins and I have a little problem.
> Inside a plugin, I would like to draw colored circles on a grey levels
> image such that the gray level image could be saved, for example as tif,
> with the circles too.
> Does anyone know the good class or the way I could do that?
>
> Thank you!
>
> Alessandra
>