Php/docs/function.ps-arc

来自菜鸟教程
跳转至:导航、​搜索

ps_arc

(PECL ps >= 1.1.0)

ps_arcDraws an arc counterclockwise


说明

ps_arc ( resource $psdoc , float $x , float $y , float $radius , float $alpha , float $beta ) : bool

Draws a portion of a circle with at middle point at (x, y). The arc starts at an angle of alpha and ends at an angle of beta. It is drawn counterclockwise (use ps_arcn() to draw clockwise). The subpath added to the current path starts on the arc at angle alpha and ends on the arc at angle beta.


参数

psdoc
Resource identifier of the postscript file as returned by ps_new().
x
The x-coordinate of the circle's middle point.
y
The y-coordinate of the circle's middle point.
radius
The radius of the circle
alpha
The start angle given in degrees.
beta
The end angle given in degrees.


返回值

成功时返回 true, 或者在失败时返回 false


参见