PHP | ImagickDraw arc() Function Last Updated : 11 Jul, 2025 Summarize Comments Improve Suggest changes Share Like Article Like Report The ImagickDraw::arc() function is an inbuilt function in Imagick library of PHP which is used to draw an arc. Syntax: bool ImagickDraw::arc( $sx, $sy, $ex, $ey, $sd, $ed ) Parameters: This function accepts six parameters as mentioned above and described below: $sx: This parameter takes the value of starting x-ordinate. $sy: This parameter takes the value of starting y-ordinate. $ex:This parameter takes the value of ending x-ordinate. $ey: This parameter takes the value of ending y-ordinate. $sd: This parameter takes the value of starting angle of rotation in degrees. $ed: This parameter takes the value of ending angle of rotation in degrees. Return Value: This function does not return any value. Below program illustrates the ImagickDraw::arc() function in PHP: Program: php <?php /*require_once('vendor/autoload.php');*/ // Create ImagickDraw object $draw = new ImagickDraw(); $draw->setStrokeColor('Green'); $draw->setFillColor('Red'); $draw->setStrokeWidth(7); $draw->arc(120, 30, 250, 180, 50, 190); // Create an image object $image = new Imagick(); $image->newImage(300, 300, 'White'); $image->setImageFormat("png"); // Use drawImage function $image->drawImage($draw); // Send the image to the browser header("Content-Type: image/png"); echo $image->getImageBlob(); ?> Output: Reference: https://www.php.net/manual/en/imagickdraw.arc.php Comment More infoAdvertise with us Next Article PHP | GmagickDraw arc() Function S sarthak_ishu11 Follow Improve Article Tags : Misc Technical Scripter Web Technologies PHP Image-Processing PHP-function PHP-Imagick +3 More Practice Tags : Misc Similar Reads PHP | GmagickDraw arc() Function The GmagickDraw::arc() function is an inbuilt function in PHP which is used to draw an arc falling within a specified bounding rectangle on the image. Syntax:  GmagickDraw GmagickDraw::arc( float $sx, float $sy, float $ex, float $ey, float $sd, float $ed ) Parameters: This function accept six parame 2 min read PHP | ImagickDraw circle() Function The ImagickDraw::circle() function is an inbuilt function in Imagick library of PHP which is used to draw a circle. Syntax: bool ImagickDraw::circle( $ox, $oy, $px, $py ) Parameters: This function accepts four parameters as mentioned above and described below: $ox: This parameter takes the value of 1 min read PHP | ImagickDraw color() Function The ImagickDraw::color() function is an inbuilt function in PHP which is used to draw color on the image using the current fill color, starting at the specified position, and using specified paint method. Syntax: bool ImagickDraw::color( float $x, float $y, int $paintMethod ) Parameters: This functi 2 min read PHP | ImagickDraw clone() Function The ImagickDraw::clone() function is an inbuilt function in PHP which is used to make an exact copy of the specified ImagickDraw object. Syntax: ImagickDraw ImagickDraw::clone( void ) Parameters: This function doesnât accepts any parameter. Return Value: This function returns the exact copy of the s 2 min read PHP | ImagickDraw bezier() Function The ImagickDraw::bezier() function is an inbuilt function in Imagick library of PHP which is used to draw bezier curve. Syntax: bool ImagickDraw::bezier( $coordinates ) Parameters: This function accepts a single parameter as the multidimensional array which takes the points through which curve is to 1 min read PHP | ImagickDraw affine() Function The ImagickDraw::affine() function is an inbuilt function in PHP which is used to adjust the current affine transformation matrix. Syntax: bool ImagickDraw::affine( array $affine ) Parameters: This function accepts a single parameter $affine which holds the array containing the affine matrix paramet 2 min read Like