HTML5 Javascript: Save text onto canvas? -


if take @ i've done far it'll explain i'm after, i'm terrible @ explaining haha. http://logomakr.bugs3.com/

on drawing app i've implemented ability add text canvas, however, it's not recording/saving onto canvas shapes are. when i've tried looking it, seems html canvas text tends place on canvas not on it. copied simple:

var c=document.getelementbyid("mycanvas"); var ctx=c.getcontext("2d"); ctx.font="30px arial"; ctx.filltext("hello world",10,50); 

to test out, displays on canvas fine , dandy draw shape vanishes , pressing save button text isn't on png?

is there alternative or way round it?

(let me know if need see code although i'm sure you's able view source on website)

thank in advance!

for drawn shapes (rects, circles, lines) you're using mouseup event trigger saving "tempcanvas" "realcanvas".

but text, you're not saving tempcanvas realcanvas @ all. when clear tempcanvas additional drawings, text blown away. maybe add [save text] button user can trigger saving text's tempcanvas realcanvas.


Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -