Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<ImagickDraw::getFontWeightImagickDraw::getStrokeAntialias>
^ImagickDrawLast updated: Mon, 26 Oct 2026

ImagickDraw::getGravity

(PECL imagick 2, PECL imagick 3)

ImagickDraw::getGravity — Returns the text placement gravity

Description

public function ImagickDraw::getGravity(): int
Warning

This function is currently not documented; only its argument list is available.

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.


<ImagickDraw::getFontWeightImagickDraw::getStrokeAntialias>
^ImagickDrawLast updated: Mon, 26 Oct 2026