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