CoreFiles by mySites.guru
Grayscale.php35 lines, 767 bytes, from Joomla_4.2.0-Stable-Full_Package.zip
Raw History Compare with 4.1.5
md5
90a5643f8bf27da57e954eb0df5759fd
sha1
39a532ef7fb64b528f3fc4a1dcd5122bdcaf9512
sha256
2b589cd87935b1b43da9ced24feb3bc0f3e1a011646894c0305fa9dd121dd911
<?php

/**
 * Joomla! Content Management System
 *
 * @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;

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);
    }
}

The same content is in 5 releases, Joomla 4.2.0-beta3 to 4.2.1-rc2. See them all, or every version of this file.