VOOZH about

URL: https://www.geeksforgeeks.org/php/php-gmagickdraw-getstrokecolor-function/

⇱ PHP | GmagickDraw getstrokecolor() Function - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

PHP | GmagickDraw getstrokecolor() Function

Last Updated : 23 Jan, 2020
The GmagickDraw::getstrokecolor() function is an inbuilt function in PHP which is used to get the color used for stroking object outlines. Syntax:
ImagickPixel GmagickDraw::getstrokecolor( void )
Parameters: This function doesn’t accept any parameters. Return Value: This function returns an GmagickPixel value containing the color. Exceptions: This function throws GmagickDrawException on error. Below given programs illustrate the GmagickDraw::getstrokecolor() function in PHP: Program 1: Output:
rgb(0, 0, 0)
Program 2: Output:
rgb(19018, 30326, 48573)
Used Image: πŸ‘ Image
Program 3: Output: πŸ‘ Image
Reference: https://www.php.net/manual/en/gmagickdraw.getstrokecolor.php
Comment