X7ROOT File Manager
Current Path:
/home/notabjze/just4dastreets.com/libraries/src/Image/Filter
home
/
notabjze
/
just4dastreets.com
/
libraries
/
src
/
Image
/
Filter
/
ðŸ“
..
📄
Backgroundfill.php
(3.31 KB)
📄
Brightness.php
(1.07 KB)
📄
Contrast.php
(1.05 KB)
📄
Edgedetect.php
(767 B)
📄
Emboss.php
(730 B)
📄
Grayscale.php
(754 B)
📄
Negate.php
(745 B)
📄
Sketchy.php
(752 B)
📄
Smooth.php
(1.05 KB)
Editing: Smooth.php
<?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; \defined('JPATH_PLATFORM') or die; use Joomla\CMS\Image\ImageFilter; /** * Image Filter class adjust the smoothness of an image. * * @since 2.5.0 */ class Smooth 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 * @throws \InvalidArgumentException */ public function execute(array $options = []) { // Validate that the smoothing value exists and is an integer. if (!isset($options[IMG_FILTER_SMOOTH]) || !\is_int($options[IMG_FILTER_SMOOTH])) { throw new \InvalidArgumentException('No valid smoothing value was given. Expected integer.'); } // Perform the smoothing filter. imagefilter($this->handle, IMG_FILTER_SMOOTH, $options[IMG_FILTER_SMOOTH]); } }
Upload File
Create Folder