CoreFiles by mySites.guru
Grayscale.php42 lines, 1,077 bytes, from Joomla_4.0.0-alpha5-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha3
md5
e52bb0fad3f80d939531d41e23f15092
sha1
00f8dd8069ad455cc9807f400fb7c54efc4f313e
sha256
5d50454726bc43790d84cfbbaa1bc488c04226f2361a9c0fd79bbd1551a64fd8
<?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;
use Joomla\CMS\Log\Log;

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

/**
 * Image Filter class to transform an image to grayscale.
 *
 * @since       1.7.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   1.7.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);
	}
}

The same content is in 2 releases, Joomla 4.0.0-alpha5 to 4.0.0-alpha6. See them all, or every version of this file.