Source for file contrast.php
Documentation is available at contrast.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 contrast 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 contrast value exists and is an integer.
if (!isset
($options[IMG_FILTER_CONTRAST]) ||
!is_int($options[IMG_FILTER_CONTRAST]))
throw
new InvalidArgumentException('No valid contrast value was given. Expected integer.');
// Perform the contrast filter.
Documentation generated on Tue, 19 Nov 2013 14:57:01 +0100 by phpDocumentor 1.4.3