$bgColor = '9EA5FF';
imagefilledrectangle($im, 0, 0, 11, 214,'0x' . $bgColor);
또는
$bgColor = '0x9EA5FF';
imagefilledrectangle($im, 0, 0, 11, 214,$bgColor);
코드 (들) 위의 제곱에 기입하지 않는 것 같다 그것은 (그냥 검은 색)하지만이 코드 :
imagefilledrectangle($im, 0, 0, 11, 214,'0x9EA5FF');
않습니다.
내가 뭘 잘못하고 있니?
어떻게해야할까요? – StealthRT
$ bgColor = '9EA5FF'를 나타내는 줄을 바꿀 수 있습니다. 이걸로 $ bgColor = imagecolorallocate ($ im, 168, 155, 255); – Andrew
나는 그것을 얻었다 :) 고마워! – StealthRT