Adding dynamic text on image

后端 未结 1 1292
小鲜肉
小鲜肉 2021-02-03 13:46

I\'m making a website for users where they can creat customize logos. For this I need a facility to add dynamic text from text boxes which the user will fill in and the text sho

相关标签:
1条回答
  • 2021-02-03 14:22

    You can try the following:

    1. Use HTML5 Canvas to render your image Example: http://www.html5canvastutorials.com/tutorials/html5-canvas-images/
    2. On top of the rendered image use the HTML5 Canvas API to draw the text you want with the required font attributes Reference: https://developer.mozilla.org/en/Drawing_text_using_a_canvas

    Hope its useful.

    0 讨论(0)
提交回复
热议问题