CoreFiles by mySites.guru
Sketchy.php37 lines, 769 bytes, from Joomla_4.0.0-Stable-Full_Package.zip
Raw History Compare with 3.10.12
md5
8a191770167a886b238da9088f902632
sha1
b21e7e6cb3633b7f9165d4c5138502e6e0425614
sha256
6ec041aeb8182d665c2825abfbfb07ad3a59fa28200040be384336c98dd42850
<?php
/**
 * @package     Joomla.Platform
 * @subpackage  Image
 *
 * @copyright   (C) 2005 Open Source Matters, Inc. <https://www.joomla.org>
 * @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;

/**
 * Image Filter class to make an image appear "sketchy".
 *
 * @since  2.5.0
 */
class Sketchy extends ImageFilter
{
	/**
	 * Method to apply a filter to an image resource.
	 *
	 * @param   array  $options  An array of options for the filter.
	 *
	 * @return  void
	 *
	 * @since   2.5.0
	 */
	public function execute(array $options = [])
	{
		// Perform the sketchy filter.
		imagefilter($this->handle, IMG_FILTER_MEAN_REMOVAL);
	}
}

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