PHP | Imagick setPointSize() Function Last Updated : 28 Nov, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report The Imagick::setPointSize() function is an inbuilt function in PHP which is used to set the point size of imagick object. Syntax: bool Imagick::setPointSize( int $point_size ) Parameters: This function accepts a single parameter $point_size which holds the size of point. Return Value: This function returns TRUE on success. Exceptions: This function throws ImagickException on error. Below given programs illustrate the Imagick::setPointSize() function in PHP: Program 1: php <?php // Create a new imagick object $imagick = new Imagick(); // Set point size $imagick->setPointSize(50); // Create a caption $imagick->newPseudoImage(800, 250, "caption:GeeksforGeeks"); // Show the output $imagick->setformat('png'); header("Content-Type: image/png"); echo $imagick->getImageBlob(); ?> Output: Program 2: php <?php // Create a new imagick object $imagick = new Imagick(); // Set point size $imagick->setPointSize(400); // Create a caption $imagick->newPseudoImage(800, 250, "caption:GeeksforGeeks"); // Add border $imagick->borderImage('black', 1, 1); // Show the output $imagick->setformat('png'); header("Content-Type: image/png"); echo $imagick->getImageBlob(); ?> Output: Reference: https://www.php.net/manual/en/imagick.setpointsize.php Comment More infoAdvertise with us Next Article PHP | Imagick setSizeOffset() Function G gurrrung Follow Improve Article Tags : Web Technologies PHP PHP-function PHP-Imagick Similar Reads PHP | Imagick setSize() Function The Imagick::setSize() function is an inbuilt function in PHP which is used to set the size associated with an imagick object. Syntax: bool Imagick::setSize( int $columns, int $rows ) Parameters: This function accepts two parameters as mentioned above and described below: $columns: It specifies the 1 min read PHP | ImagickDraw setFontSize() Function The ImagickDraw::setFontSize() function is an inbuilt function in PHP which is used to set the font point size. It is used when annotating with text. Syntax:  bool ImagickDraw::setFontSize( $pointsize ) Parameters: This function accepts a single parameter $pointsize which is used to hold the value 2 min read PHP | Gmagick setsize() Function The Gmagick::setsize() function is an inbuilt function in PHP which is used to set the size associated with an gmagick object. Syntax: Gmagick Gmagick::setsize( int $columns, int $rows ) Parameters: This function accept two parameters as mentioned above and described below: $columns: It specifies th 1 min read PHP | Imagick setPage() Function The Imagick::setPage() function is an inbuilt function in PHP which is used to set the page geometry of the Imagick object. Syntax: bool Imagick::setPage( int $width, int $height, int $x, int $y ) Parameters:This function accepts four parameters as mentioned above and described below: $width: It spe 2 min read PHP | Imagick setSizeOffset() Function The Imagick::setSizeOffset() function is an inbuilt function in PHP which is used to set the size and offset of the Imagick object. Syntax: bool Imagick::setSizeOffset( int $columns, int $rows, int $offset ) Parameters: This function accepts three parameters as mentioned above and described below: $ 1 min read PHP | Imagick setImageUnits() Function The Imagick::setImageUnits() function is an inbuilt function in PHP which is used to set the units of resolution of a particular image.Syntax:  bool Imagick::setImageUnits( $units ) Parameters: This function accepts single parameter $units which is used to specify the units to be set for image. Res 2 min read Like