Re: overlay string
Posted by Michael P Ellis on Mar 27, 2011; 10:30am
URL: http://imagej.273.s1.nabble.com/overlay-string-tp3685260p3685261.html
Try adding Overlay.show() after the Overlay.drawString() command. For example:
newImage("Test", "8-bit Ramp", 400, 400, 1);
Overlay.drawString("Easter Bunny", 100,100);
Overlay.show();
Regards -- Michael Ellis
On 27 Mar 2011, at 10:47, Frank Sprenger wrote:
> Hello,
>
> I want to add text to an overlay using the
> Overlay.drawString("text", x, y)
> command. However, this command only works when an overlay already exists. Is there a command that creates an overlay (without adding anything to the overlay) so that Overlay.drawString("text", x, y) can put text into the overlay?
>
> Thanks
> Frank