CoreFiles by mySites.guru
Negate.php39 lines, 869 bytes, from Joomla_5.2.2-Stable-Full_Package.zip
Raw History Compare with 5.2.1
md5
2ba91e508a58d0d74e9825a86953b001
sha1
afa7dcb9c2f9c9456bdde71c030d68666f81cc15
sha256
a8819510b38ea3c41d171e94730bcfcf7175d8c01798e79eeaab69a9e1ba0ea6
<?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.txt
 */

namespace Joomla\CMS\Image\Filter;

use Joomla\CMS\Image\ImageFilter;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

/**
 * Image Filter class to negate the colors of an image.
 *
 * @since  2.5.0
 */
class Negate 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 negative filter.
        imagefilter($this->handle, IMG_FILTER_NEGATE);
    }
}

The same content is in 155 releases, Joomla 5.0.0-alpha1 to 6.2.1-rc1. See them all, or every version of this file.