开发者

Writing curved text on an arc (PHP)

开发者 https://www.devze.com 2022-12-14 16:13 出处:网络
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.

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/scan开发者_开发知识库0001fe.jpg

Let me know if this doesn't make sense.


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


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


Imagick has native support for curved text

0

精彩评论

暂无评论...
验证码 换一张
取 消