Mozilla canvas adding floating text -
In my canvas element, I want to add a dragable text to an image. The user should be able to move it to the canvas area. I can add text using some API functions, but there is no sense of running text. Do I need to use the DIV tag to control the text? But the problem is that in the end I need to save the canvas as an image file, so the ordinary DIV tag will not save on the canvas.
I would like to hear your comments.
You should use standard text drawing functions, but keep a record of the condition in the variable - then when the text (Which you can calculate using its size), you can drag it to a new position (calculate using mouse coordinates).
Comments
Post a Comment