PHP - Manual: Gmagick::annotateimage
2024-11-14
(PECL gmagick >= Unknown)
Gmagick::annotateimage — Annotates an image with text
$GmagickDraw
,$x
,$y
,$angle
,$text
Annotates an image with text.
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.
The Gmagick object with annotation made.
错误时抛出 GmagickException。
官方地址:https://www.php.net/manual/en/gmagick.annotateimage.php