Вход Регистрация
Файл: vendor/intervention/image/src/Drivers/Gd/Modifiers/GammaModifier.php
Строк: 31
<?php

declare(strict_types=1);

namespace 
InterventionImageDriversGdModifiers;

use 
InterventionImageInterfacesImageInterface;
use 
InterventionImageInterfacesSpecializedInterface;
use 
InterventionImageModifiersGammaModifier as GenericGammaModifier;

class 
GammaModifier extends GenericGammaModifier implements SpecializedInterface
{
    
/**
     * {@inheritdoc}
     *
     * @see ModifierInterface::apply()
     */
    
public function apply(ImageInterface $image): ImageInterface
    
{
        foreach (
$image as $frame) {
            
imagegammacorrect($frame->native(), 1$this->gamma);
        }

        return 
$image;
    }
}
Онлайн: 0
Реклама