PHP Gmagick getreleasedate () function

PHP

Syntax:
string Gmagick::getreleasedate (void)
Parameters:this function takes no parameters.Return Value:This function returns the GraphicsMagick release date as a string.Errors / Exceptions: this function throws a GmagickException on error.The following programs illustrate the Gmagick::getreleasedate() functionin PHP:Program 1: < / strong>  
// Create a Gmagick object $gmagick = new Gmagick ( ' https://media.engineerforengineer.org/wp-content/uploads/tech.png ' );  
// Using the getreleasedate() function print_r ( $gmagick -> getreleasedate()); ?>
Output:
2017-05-23
Program 2:  
// Create a GmagickDraw object $draw = new GmagickDraw ( );  
// Create a GmagickPixel $strokeColor = new GmagickPixel ( 'Red' ); $fillColor = new GmagickPixel ( 'Green' );  
// Set the color, opacity of the image $draw -> setStrokeOpacity (1); $draw -> setStrokeColor ( 'Red' ); $draw -> setFillColor ( 'Green' );  
// Set the width and height of the image $draw -> setStrokeWidth (7); $draw -> setFontSize (72);  
// Function for drawing a circle $draw -> circle (250, 250, 100, 150); $gmagick = new Gmagick(); $gmagick -> newImage (500, 500, 'White' ); $gmagick -> setImageFormat ( "png" ); $gmagick -> drawImage ( $draw );  
// Using the getreleasedate() function print_r ( $gmagick -> getreleasedate()); ?>
Output:
2017-05-23
Link: http: / /php.net/manual/en/gmagick.getreleasedate.php



Get Solution for free from DataCamp guru