PHP GD how to draw text over a line

前端 未结 3 1354
花落未央
花落未央 2021-01-12 09:21

The final output should be like image(HELLO WORLD): \"Ignore

Here is what i am do

3条回答
  •  甜味超标
    2021-01-12 09:54

    2 thoughts, can't test right now.

    1. Where is 0 (x=1, y=0) or (x=0, y=1). It seems your text is off by 90 degrees which usually means that your assuming 0 is directly right, when maybe it's directly up or vice versa.

    2. (rad2deg(atan2($delta_y,$delta_x)) * 180 / M_PI)-360; are you doing double work here? rad2deg converts from radians to degrees. 180 / M_PI is also a conversion from radians to degrees.

提交回复
热议问题