©
Dieses Dokument verwendet PHP-Handbuch für chinesische Websites Freigeben
(PECL imagick 2.0.0)
Imagick::setImageDepth — Sets the image depth
$depth
)Sets the image depth.
depth
成功时返回 TRUE
。
错误时抛出 ImagickException。
[#1] kehrigan at gmail dot com [2014-07-23 20:25:06]
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."