mirror of
https://github.com/Intervention/image.git
synced 2025-08-01 11:30:16 +02:00
Update GD\Color.php update transparency extraction.
This commit is contained in:
@@ -34,7 +34,7 @@ class Color extends AbstractColor implements ColorInterface
|
|||||||
|
|
||||||
public function toArray(): array
|
public function toArray(): array
|
||||||
{
|
{
|
||||||
$a = ($this->value >> 24) & 0xFF;
|
$a = ($this->value >> 24) & 0x7F;
|
||||||
$r = ($this->value >> 16) & 0xFF;
|
$r = ($this->value >> 16) & 0xFF;
|
||||||
$g = ($this->value >> 8) & 0xFF;
|
$g = ($this->value >> 8) & 0xFF;
|
||||||
$b = $this->value & 0xFF;
|
$b = $this->value & 0xFF;
|
||||||
|
Reference in New Issue
Block a user