Manual do PHP
Anterior |  | Próxima

# HaruImage::setColorMask

(no version information, might be only in CVS)

HaruImage::setColorMask -- Set the color mask of the image

## Descrição

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.

## Parâmetros

`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.

## Valores de retornado

Returns `TRUE` on success.

## Erros/Excessões

Throws HaruException on error.

Anterior | Principal | Próxima
HaruImage::getWidth | Acima | HaruImage::setMaskImage