使用javascript或jquery即时生成文本到图像 [英] Text to image on fly with javascript or jquery
本文介绍了使用javascript或jquery即时生成文本到图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有任何方法或方法使用javascript或jquery将文本(字符串)转换为图像? 我找不到任何方法可以做到这一点. 最好是什么?
Is there any way or method to convert text (string) to image with javascript or jquery? I cant find any way to do this. Whats the best?
我不想使用php或asp.net来执行此操作. 感谢您的技巧和帮助.
I don't want to use php or asp.net to do this. Thanks for any tricks and help.
推荐答案
使用canvas
元素并在其上绘制文本.
jsFiddle .
这篇关于使用javascript或jquery即时生成文本到图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文