Open In App

PHP | Imagick getPointSize() Function

Last Updated : 26 Nov, 2019
Summarize
Comments
Improve
Suggest changes
Share
Like Article
Like
Report
The Imagick::getPointSize() function is an inbuilt function in PHP which is used to get the point size of the imagick object. Syntax:
float Imagick::getPointSize( void )
Parameters:This function doesn’t accepts any parameter. Return Value: This function returns a float value containing the point size. Exceptions: This function throws ImagickException on error. Below programs illustrate the Imagick::getPointSize() function in PHP: Program 1: php
<?php

// Create a new imagick object
$imagick = new Imagick(
'https://media.geeksforgeeks.org/wp-content/uploads/geeksforgeeks-13.png');

// Get point size
$pointSize = $imagick->getPointSize();

echo $pointSize;
?>
Output:
0
Program 2: php
<?php

// Create a new imagick object
$imagick = new Imagick(
'https://media.geeksforgeeks.org/wp-content/uploads/geeksforgeeks-13.png');

// Set point size
$imagick->setPointSize(5);

// Get point size
$pointSize = $imagick->getPointSize();
echo $pointSize;
?>
Output:
5
Reference: https://www.php.net/manual/en/imagick.getpointsize.php

Similar Reads