Файл: vendor/intervention/image/src/Modifiers/FillTransparentAreasModifier.php
Строк: 41
<?php
declare(strict_types=1);
namespace InterventionImageModifiers;
use InterventionImageDriversSpecializableModifier;
use InterventionImageInterfacesColorInterface;
use InterventionImageInterfacesDriverInterface;
class FillTransparentAreasModifier extends SpecializableModifier
{
/**
* Create new modifier object.
*/
public function __construct(public null|string|ColorInterface $color = null)
{
//
}
/**
* Decode background color of current modifier with given driver.
*/
protected function backgroundColor(DriverInterface $driver): ColorInterface
{
return $driver->decodeColor(
$this->color !== null ? $this->color : $driver->config()->backgroundColor,
);
}
}