Imagick::setImageDepth

(PECL imagick 2.0.0)

Imagick::setImageDepthSets the image depth

Description

bool Imagick::setImageDepth ( int $depth )

Sets the image depth.

Parameters

depth

Return Values

Returns TRUE on success.

Errors/Exceptions

Throws ImagickException on error.

Коментарии

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."
2014-07-23 23:25:06
http://php5.kiev.ua/manual/ru/imagick.setimagedepth.html

    Поддержать сайт на родительском проекте КГБ