mirror of
https://github.com/Intervention/image.git
synced 2025-08-30 09:10:21 +02:00
Added Color::toInt
This commit is contained in:
@@ -54,4 +54,9 @@ class Color extends AbstractColor implements ColorInterface
|
||||
|
||||
return [$r, $g, $b, $a];
|
||||
}
|
||||
|
||||
public function toInt(): int
|
||||
{
|
||||
return $this->value;
|
||||
}
|
||||
}
|
||||
|
@@ -24,7 +24,7 @@ class FillModifier implements ModifierInterface
|
||||
$filling = $this->getApplicableFilling();
|
||||
|
||||
foreach ($image as $frame) {
|
||||
imagefilledrectangle($frame->getCore(), 0, 0, $width - 1, $height - 1, $filling);
|
||||
imagefilledrectangle($frame->getCore(), 0, 0, $width - 1, $height - 1, $filling->toInt());
|
||||
}
|
||||
|
||||
return $image;
|
||||
|
Reference in New Issue
Block a user