php8.5
Home/ Manual/ gmagick / gmagick/ Gmagick::annotateimage

Gmagick::annotateimage

PHP function Edit on GitHub ✎

(PECL gmagick >= Unknown)

Annotates an image with text

Description

Gmagick::annotateimage(GmagickDraw $GmagickDraw, float $x, float $y, float $angle, string $text): Gmagick

Annotates an image with text.

Parameters

GmagickDraw

The GmagickDraw object that contains settings for drawing the text.

x

Horizontal offset in pixels to the left of text.

y

Vertical offset in pixels to the baseline of text.

angle

The angle at which to write the text.

text

The string to draw.

Return Values

The Gmagick object with annotation made.

Errors/Exceptions

Throw

Source: reference/gmagick/gmagick/annotateimage.xml · from the official PHP manual (php/doc-en)