芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/testcors.sdektun.com/libraries/src/Image/Filter/Grayscale.php
* @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 transform an image to grayscale. * * @since 2.5.0 */ 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 2.5.0 */ public function execute(array $options = []) { // Perform the grayscale filter. imagefilter($this->handle, IMG_FILTER_GRAYSCALE); } }