Source for file filter.php
Documentation is available at filter.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
* Class to manipulate an image.
* @package Joomla.Platform
* @var resource The image resource handle.
* @param resource $handle The image resource on which to apply the filter.
* @throws InvalidArgumentException
* @throws RuntimeException
// Verify that image filter support for PHP is available.
// @codeCoverageIgnoreStart
JLog::add('The imagefilter function for PHP is not available.', JLog::ERROR);
throw
new RuntimeException('The imagefilter function for PHP is not available.');
// @codeCoverageIgnoreEnd
// Make sure the file handle is valid.
JLog::add('The image handle is invalid for the image filter.', JLog::ERROR);
throw
new InvalidArgumentException('The image handle is invalid for the image filter.');
* Method to apply a filter to an image resource.
* @param array $options An array of options for the filter.
abstract public function execute(array $options =
array());
Documentation generated on Tue, 19 Nov 2013 15:03:19 +0100 by phpDocumentor 1.4.3