php教程

Imagick::setImageDepth

(PECL imagick 2.0.0)

Imagick::setImageDepthSets the image depth

说明

Imagick::setImageDepth ( int $depth ) : bool

Sets the image depth.

参数

depth

返回值

成功时返回 TRUE

错误/异常

错误时抛出 ImagickException。

User Contributed Notes

kehrigan at gmail dot com 23-Jul-2014 08:25
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."

CopyRight © 2008-2022 verySource.Com All Rights reserved. 京ICP备17048824号-1 京公网安备:11010502034788