Source for file brightness.php
Documentation is available at brightness.php
* @package Joomla.Platform
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
* Image Filter class adjust the brightness of an image.
* @package Joomla.Platform
* Method to apply a filter to an image resource.
* @param array $options An array of options for the filter.
* @throws InvalidArgumentException
public function execute(array $options =
array())
// Validate that the brightness value exists and is an integer.
if (!isset
($options[IMG_FILTER_BRIGHTNESS]) ||
!is_int($options[IMG_FILTER_BRIGHTNESS]))
throw
new InvalidArgumentException('No valid brightness value was given. Expected integer.');
// Perform the brightness filter.
Documentation generated on Tue, 19 Nov 2013 14:54:44 +0100 by phpDocumentor 1.4.3