略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: Gmagick::annotateimage

2024-04-27

Gmagick::annotateimage

(PECL gmagick >= Unknown)

Gmagick::annotateimageAnnotates an image with text

说明

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

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

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/gmagick.annotateimage.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3