PHP Imagick getImageTicksPerSecond () Function

Syntax:
int Imagick::getImageTicksPerSecond (void)
Parameters:this function takes no parameters.Returned value:this function returns image ticks per second.The programs below illustrate the Imagick::getImageTicksPerSecond function()in PHP:Program 1:
Original image:
 
// PHP program to illustrate the getImageTicksPerSecond function $image = new Imagick ( https://media.engineerforengineer.org/wp -content / uploads / engineerforengineer-15.png " );  
// Using the getImageTicksPerSecond function $pixels = $image -> getImageTicksPerSecond(); print ( $pixels ); ?>
Output:
100
Program 2:
Original image:
$string = " Computer Science portal for Geeks! " ;  
// Create a new image of the above line // and add color $im = new Imagick(); $draw = new ImagickDraw();  
// Fill the color in the image $draw -> setFillColor ( new ImagickPixel ( 'green' ));  
// Set the text font size $draw -> setFontSize (50); $metrix = $im -> queryFontMetrics ( $draw , $string ); $draw -> annotation (0, 40, $string ); $im -> newImage ( $metrix [ 'textWidth' ], $metrix [ 'textHeight' ], new ImagickPixel ( 'white' )); // Draw image $im -> drawImage ( $draw ); $im -> setImageFormat ( 'jpeg' );  
// Using the getImageTicksPerSecond function $pixels = $im -> getImageTicksPerSecond(); print ( $pixels ); ?>
Output:
100
Link: http://php.net /manual/en/imagick.getimagetickspersecond.php



Get Solution for free from DataCamp guru