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