1 <?php
 2 /**
 3  * @package     Joomla.Platform
 4  * @subpackage  Image
 5  *
 6  * @copyright   Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
 7  * @license     GNU General Public License version 2 or later; see LICENSE
 8  */
 9 
10 defined('JPATH_PLATFORM') or die;
11 
12 /**
13  * Image Filter class to negate the colors of an image.
14  *
15  * @since  11.3
16  */
17 class JImageFilterNegate extends JImageFilter
18 {
19     /**
20      * Method to apply a filter to an image resource.
21      *
22      * @param   array  $options  An array of options for the filter.
23      *
24      * @return  void
25      *
26      * @since   11.3
27      */
28     public function execute(array $options = array())
29     {
30         // Perform the negative filter.
31         imagefilter($this->handle, IMG_FILTER_NEGATE);
32     }
33 }
34