PHP 5.4.33 Released

Imagick::setImageDepth

(PECL imagick 2.0.0)

Imagick::setImageDepthSets the image depth

Descrierea

bool Imagick::setImageDepth ( int $depth )

Sets the image depth.

Parametri

depth

Valorile întoarse

Întoarce TRUE în caz de succes.

Erori/Excepții

Emite ImagickException în caz de eroare.

add a note add a note

User Contributed Notes 1 note

up
0
kehrigan at gmail dot com
1 month ago
Depth is a number in terms of bits. Floats seem to be accepted.

From the ImageMagick documentation:
"This the number of bits in a color sample within a pixel. Use this option to specify the depth of raw images whose depth is unknown such as GRAY, RGB, or CMYK, or to change the depth of any image after it has been read."
To Top