php8.5
Home/ Manual/ gmagick / gmagick/ Gmagick::setimagedepth

Gmagick::setimagedepth

PHP function Edit on GitHub ✎

(PECL gmagick >= Unknown)

Sets the image depth

Description

Gmagick::setimagedepth(int $depth): Gmagick

Sets the image depth.

Parameters

depth

The image depth in bits: 8, 16, or 32.

Return Values

The Gmagick object.

Errors/Exceptions

Throw

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