(PECL imagick 2, PECL imagick 3)
ImagickDraw::getGravity — Returns the text placement gravity
public ImagickDraw::getGravity(): int
This function is currently not documented; only its argument list is available.
Returns the text placement gravity used when annotating with text.
Returns a GRAVITY constant (imagick::GRAVITY_*) on success and 0 if no gravity is set.
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/imagickdraw.getgravity.php