Back to Joomla project (class list)

Class Backgroundfill - list of methods

Image Filter class fill background with color;

Extends

Package: Joomla\CMS\Image\Filter
Copyright: (C) 2005 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE
Located at: Joomla/Image/Filter/Backgroundfill.php
Project: Joomla

Method Summary

public void
(array $options = [])

Method to apply a background color to an image resource.
Parameters
  • array $options An array of options for the filter. color Background matte color
Returns
  • void
Since
  • 3.4
-
  • \InvalidArgumentException
Show source code of this method: execute Source Code

protected array
(mixed $input)

Method to sanitize color values and/or convert to an array
Parameters
  • mixed $input Associative array of colors and alpha, or hex RGBA string when alpha FF is opaque. Defaults to black and opaque alpha.
Returns
  • array Associative array of red, green, blue and alpha
Since
  • 3.4
-
  • '#FF0000FF' returns an array with alpha of 0 (opaque)
Show source code of this method: sanitizeColor Source Code

Tags Summary

Since
3.4