Home > PHP > Function > > ImagickDraw::getGravity()

ImagickDraw::getGravity()

ImagickDraw::getGravity - Returns the text placement gravity

Syntax

int ImagickDraw::getGravity ()

Arguments

-

Description

Returns the text placement gravity used when annotating with text.

Version

PHP PECL imagick 2.0.0

Return value

Returns a GRAVITY_ constant on success and 0 if no gravity is set.