略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: HaruImage::setColorMask

2024-12-21

HaruImage::setColorMask

(PECL haru >= 0.0.1)

HaruImage::setColorMaskSet the color mask of the image

说明

HaruImage::setColorMask ( int $rmin , int $rmax , int $gmin , int $gmax , int $bmin , int $bmax ) : bool

Defines the transparent color of the image using the RGB range values. The color within the range is displayed as a transparent color. The color space of the image must be RGB.

参数

rmin

The lower limit of red. Must be between 0 and 255.

rmax

The upper limit of red. Must be between 0 and 255.

gmin

The lower limit of green. Must be between 0 and 255.

gmax

The upper limit of green. Must be between 0 and 255.

bmin

The lower limit of blue. Must be between 0 and 255.

bmax

The upper limit of blue. Must be between 0 and 255.

返回值

Returns TRUE on success.

错误/异常

发生错误时抛出 HaruException 异常。

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/haruimage.setcolormask.php

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