Wednesday, July 29, 2026
HomeLanguagesPHP | Imagick getPointSize() Function

PHP | Imagick getPointSize() Function

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
  
// Create a new imagick object
$imagick = new Imagick(
  
// Get point size
$pointSize = $imagick->getPointSize();
  
echo $pointSize;
?>


Output:

0

Program 2:




<?php
  
// Create a new imagick object
$imagick = new Imagick(
  
// 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

RELATED ARTICLES

5 COMMENTS

Most Popular

Dominic
32520 POSTS0 COMMENTS
Milvus
131 POSTS0 COMMENTS
Nango Kala
6903 POSTS0 COMMENTS
Nicole Veronica
12017 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12115 POSTS0 COMMENTS
Shaida Kate Naidoo
7023 POSTS0 COMMENTS
Ted Musemwa
7265 POSTS0 COMMENTS
Thapelo Manthata
6981 POSTS0 COMMENTS
Umr Jansen
6973 POSTS0 COMMENTS