Login  Register

Duplicating Images With Symbols

Posted by David Webster on Nov 18, 2009; 6:56pm
URL: http://imagej.273.s1.nabble.com/Duplicating-Images-With-Symbols-tp3690407.html

All,

If I write a macro that uses "setColor(255);drawOval(w/2, h/2, 50,50);" to
draw an oval into an image, then I can
duplicate the image (i.e. run("Duplicate ... ",... ) and oval is in the
duplicate. In Java, if I use

Vector list = new Vector();
OvalRoi roi = new OvalRoi(x,y,w,h);
roi.setInstanceColor(Color.green);
list.addElement(roi);
               
and then duplicate the resulting output image, the oval doesn't show up in
the duplicate.
Is there a way to insert an oval, or other symbols into an image in a Java
program and have them
be "duplicatable" outside of the program?

David Webster