(PECL haru >= 0.0.1)
HaruImage::setColorMask — Set the color mask of the image
$rmin
, int $rmax
, int $gmin
, int $gmax
, int $bmin
, int $bmax
) : boolDefines 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.
rminThe lower limit of red. Must be between 0 and 255.
rmaxThe upper limit of red. Must be between 0 and 255.
gminThe lower limit of green. Must be between 0 and 255.
gmaxThe upper limit of green. Must be between 0 and 255.
bminThe lower limit of blue. Must be between 0 and 255.
bmaxThe upper limit of blue. Must be between 0 and 255.
Returns TRUE on success.
Lança uma HaruException em erros.