> 3) & 31)]) >> ($bit & 7)) & 1; if (!$on) continue; $x1 = $offset + $col * $cell; $y1 = $offset + $row * $cell; $x2 = $offset + ($cells - 1 - $col) * $cell + $cell - 1; $y2 = $y1 + $cell - 1; imagefilledrectangle($im, $x1, $y1, $x1 + $cell - 1, $y2, $fg); if ($x2 !== $x1) { imagefilledrectangle($im, $x2, $y1, $x2 + $cell - 1, $y2, $fg); } } } ob_start(); imagepng($im, null, 9); $png = ob_get_clean(); imagedestroy($im); header('Content-Length: '.strlen($png)); echo $png; exit;