php8.5
Home/ Manual/ imagick / imagickdraw/ ImagickDraw::getGravity

ImagickDraw::getGravity

PHP function Edit on GitHub ✎

(PECL imagick 2, PECL imagick 3)

Returns the text placement gravity

Description

ImagickDraw::getGravity(): int

Func

Returns the text placement gravity used when annotating with text.

Return Values

Returns a GRAVITY constant (imagick::GRAVITY_*) on success and 0 if no gravity is set.

Source: reference/imagick/imagickdraw/getgravity.xml · from the official PHP manual (php/doc-en)