Image Filter class fill background with color;
- Depuis
- 3.4
◆ execute()
execute |
( |
array |
$options = [] | ) |
|
Method to apply a background color to an image resource.
- Paramètres
-
array | $options | An array of options for the filter. color Background matte color |
- Renvoie
- void
- Depuis
- 3.4
- Exceptions
-
Références $color, $height, $options, $width, et null.
◆ sanitizeColor()
Method to sanitize color values and/or convert to an array
- Paramètres
-
mixed | $input | Associative array of colors and alpha, or hex RGBA string when alpha FF is opaque. Defaults to black and opaque alpha. |
- Renvoie
- array Associative array of red, green, blue and alpha
- Depuis
- 3.4
- Note
- '#FF0000FF' returns an array with alpha of 0 (opaque)
Références $colors, $input, $value, et elseif.
La documentation de cette classe a été générée à partir du fichier suivant :