略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: Imagick::setImageDepth

2024-12-22

Imagick::setImageDepth

(PECL imagick 2, PECL imagick 3)

Imagick::setImageDepthSets the image depth

说明

public Imagick::setImageDepth(int $depth): bool

Sets the image depth.

参数

depth

返回值

成功时返回 true

错误/异常

错误时抛出 ImagickException。

add a noteadd a note

User Contributed Notes 1 note

up
-8
kehrigan at gmail dot com
7 years 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."

官方地址:https://www.php.net/manual/en/imagick.setimagedepth.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3