Syntax:float Imagick::getPointSize (void)
Parameters:This function takes no parameters.
Return value:This function returns a floating point value containing the size of a point.
Exceptions:This function throws an ImagickException on error.The following programs illustrate the
Imagick::getPointSize() functionin PHP:
Program 1:
// Create a new imagick object
$imagick
=
new
Imagick (
’ https://media.engineerforengineer.org/wp-content/uploads/engineerforengineer-13.png ’
);
// Get point size
$pointSize
=
$imagick
-> getPointSize();
echo
$pointSize
;
?>
Output:0
Program 2:
// Create a new imagick object
$imagick
=
new
Imagick ( ’ https://media.engineerforengineer.org/wp-content/uploads/engineerforengineer-13.png ’
);
// Set point size
$imagick
-> setPointSize (5);
// Get point size
$pointSize
=
$imagick
-> getPointSize();
echo
$pointSize
;
?>
Output:5
Link: https://www .php.net / manual / en / imagick.getpointsize.php