php8.5
Home/ Manual/ imagick / imagick/ Imagick::setGravity

Imagick::setGravity

PHP function Edit on GitHub ✎

(PECL imagick 2 >= 2.2.0, PECL imagick 3)

Sets the gravity

Description

Imagick::setGravity(int $gravity): bool

Sets the global gravity property for the Imagick object. 0x640

Parameters

gravity

The gravity property. Refer to the list of gravity constants.

Return Values

Void

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