Writing curved text on an arc (PHP)

拥有回忆 提交于 2019-12-01 19:33:16

问题


So I Googled and found out how to draw an arc: http://www.php.net/manual/en/function.imagearc.php

The only problem is how do I write text $margin pixels from the arc that is curved.

Centre aligned @ $degrees.

Here is an example: http://img194.imageshack.us/img194/3667/scan0001fe.jpg

Let me know if this doesn't make sense.


回答1:


Here is a simple PHP solution found at http://forums.phpfreaks.com/topic/57542-image-manipulation-skewing-text-text-on-a-curve/




回答2:


You could try this: http://coding.derkeiler.com/Archive/PHP/alt.php/2004-12/0061.html




回答3:


Imagick has native support for curved text



来源:https://stackoverflow.com/questions/1913342/writing-curved-text-on-an-arc-php

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!