| Current Path : /var/www/iplanru/data/www/iplan.5018.vps.agava.net/libraries/joomla/image/filter/ |
| Current File : /var/www/iplanru/data/www/iplan.5018.vps.agava.net/libraries/joomla/image/filter/grayscale.php |
<?php
/**
* @package Joomla.Platform
* @subpackage Image
*
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/
defined('JPATH_PLATFORM') or die;
/**
* Image Filter class to transform an image to grayscale.
*
* @package Joomla.Platform
* @subpackage Image
* @since 11.3
*/
class JImageFilterGrayscale extends JImageFilter
{
/**
* Method to apply a filter to an image resource.
*
* @param array $options An array of options for the filter.
*
* @return void
*
* @since 11.3
*/
public function execute(array $options = array())
{
// Perform the grayscale filter.
imagefilter($this->handle, IMG_FILTER_GRAYSCALE);
}
}