$imageHand = imagecreatefromgif("images/mb.gif"); $color = imagecolorallocate($imageHand,0,0,0); var_dump($color); 但我的这个imagecolorallocate总是分配失败,导致以后的字体全部是白色,看不清楚,请问大哥们这是什么清空啊 我擦 死都找不到原因啊
Quote: 引用: 使用imagecreatetruecolor来创建的图像可以,是不是你的图像是8bit的,这样是不行的。 求老大 怎么查看图片是不是8bit啊
使用imagecreatetruecolor来创建的图像可以,是不是你的图像是8bit的,这样是不行的。