overlay string

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

overlay string

Frank Sprenger
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
Reply | Threaded
Open this post in threaded view
|

Re: overlay string

Michael P Ellis
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