GoLang HaruImage::setColorMask

request it (351)
GoLang replacement for PHP's HaruImage::setColorMask [edit | history]



Do you know a GoLang replacement for PHP's HaruImage::setColorMask? Write it!

PHP HaruImage::setColorMask

PHP original manual for HaruImage::setColorMask [ show | php.net ]

HaruImage::setColorMask

(PECL haru >= 0.0.1)

HaruImage::setColorMaskSet the color mask of the image

Description

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

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.

Parameters

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.

Return Values

Returns TRUE on success.

Errors/Exceptions

Throws a HaruException on error.