CoreFiles by mySites.guru
Grayscale.php41 lines, 1,055 bytes, from Joomla_4.0.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha9
md5
db9c1138c430d13a67f935438a5e67a8
sha1
5212a16e293793f29207a900e325335b6ef9000b
sha256
c9a26933375efc6751529282312364b248bb822c7ffd8171f297e29f34466c87
<?php
/**
 * @package     Joomla.Platform
 * @subpackage  Image
 *
 * @copyright   Copyright (C) 2005 - 2017 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.