Update tcpdf.php

This commit is contained in:
Laurent Destailleur 2023-12-28 19:04:23 +01:00 committed by GitHub
parent 459f6eb529
commit f6acd6dfe1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7460,7 +7460,7 @@ class TCPDF
$color = imagecolorat($img, $xpx, $ypx);
// get and correct gamma color
$alpha = $this->getGDgamma($img, $color);
imagesetpixel($imgalpha, $xpx, $ypx, (int)$alpha);
imagesetpixel($imgalpha, $xpx, $ypx, (int) $alpha);
}
}
imagepng($imgalpha, $tempfile_alpha);