Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Référence de la classe Backgroundfill
+ Graphe d'héritage de Backgroundfill:

Fonctions membres publiques

 execute (array $options=array())
 
- Fonctions membres publiques hérités de ImageFilter
 __construct ($handle)
 
 getLogger ()
 
 setLogger (LoggerInterface $logger)
 
 execute (array $options=array())
 

Fonctions membres protégées

 sanitizeColor ($input)
 

Membres hérités additionnels

- Attributs protégés hérités de ImageFilter
 $handle
 
 $logger
 

Description détaillée

Image Filter class fill background with color;

Depuis
1.0
Obsolète:
The joomla/image package is deprecated

Documentation des fonctions membres

◆ execute()

execute ( array  $options = array())

Method to apply a background color to an image resource.

Paramètres
array$optionsAn array of options for the filter. color Background matte color
Renvoie
void
Depuis
1.0
Exceptions
InvalidArgumentException

Références $color, $height, $options, $width, null, et Backgroundfill\sanitizeColor().

◆ sanitizeColor()

sanitizeColor (   $input)
protected

Method to sanitize color values and/or convert to an array

Paramètres
mixed$inputAssociative 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
1.0
Note
'#FF0000FF' returns an array with alpha of 0 (opaque)

Références $input, $value, et elseif.

Référencé par Backgroundfill\execute().


La documentation de cette classe a été générée à partir du fichier suivant :