Файл vendor/intervention/image/src/Interfaces/ColorProcessorInterface.php Вес запакованого файла 271b (271 b) Вес распакованого файла: 644b (644 b) Метод сжатия: 8
<?php
declare(strict_types=1);
namespace Intervention\Image\Interfaces;
use Intervention\Image\Exceptions\ColorException;
interface ColorProcessorInterface
{
/**
* Turn given color in the driver's color implementation
*
* @param ColorInterface $color
* @throws ColorException
* @return mixed
*/
public function colorToNative(ColorInterface $color);
/**
* Turn the given driver's definition of a color into a color object
*
* @param mixed $native
* @throws ColorException
* @return ColorInterface
*/
public function nativeToColor(mixed $native): ColorInterface;
}