CoreFiles by mySites.guru
Grayscale.php41 lines, 1,055 bytes, from Joomla_4.0.0-alpha3-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha2
md5
e60524abfbecab5b49f250d2bf483452
sha1
0e30619aa316cdb2a92840abb97f1a69b78af14f
sha256
6bf021cc83219151b78c30c3a66d0a48146c1ae047a9bde4583c3ae167bc6403
<?php
/**
 * @package     Joomla.Platform
 * @subpackage  Image
 *
 * @copyright   Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE
 */

namespace Joomla\CMS\Image\Filter;

defined('JPATH_PLATFORM') or die;

use Joomla\CMS\Image\ImageFilter;

\JLog::add('JImageFilterGrayscale is deprecated, use Joomla\Image\Filter\Grayscale instead.', \JLog::WARNING, 'deprecated');

/**
 * Image Filter class to transform an image to grayscale.
 *
 * @since       11.3
 * @deprecated  5.0  Use Joomla\Image\Filter\Grayscale instead
 */
class Grayscale extends ImageFilter
{
	/**
	 * Method to apply a filter to an image resource.
	 *
	 * @param   array  $options  An array of options for the filter.
	 *
	 * @return  void
	 *
	 * @since   11.3
	 * @deprecated  5.0  Use Joomla\Image\Filter\Grayscale::execute() instead
	 */
	public function execute(array $options = array())
	{
		// Perform the grayscale filter.
		imagefilter($this->handle, IMG_FILTER_GRAYSCALE);
	}
}

No other release has this exact content. See every version of this file.