LonghornPHP 2026

Voting

: max(eight, three)?
(Example: nine)

The Note You're Voting On

matrebatre
18 years ago
Be aware that

<?php
$rgba     = imagecolorat($image, $x, $y);
$r = ($rgba >> 16) & 0xFF;
$g = ($rgba >> 8) & 0xFF;
$b = $rgba & 0xFF;
$a     = ($rgba & 0x7F000000) >> 24;
?> 

will only work for truecolor images. With eg GIF images, this will have strange results. For GIF images, you should always use imagecolorsforindex().

<< Back to user notes page

To Top