dsfb20227 2013-01-18 21:46 采纳率: 0%
浏览 33


The manual here states that the PNG function imagecolorset() accepts a red, green, blue and alpha value, however when I specify an alpha value PHP gives me the error:

Warning: imagecolorset() expects exactly 5 parameters, 6 given

This confuses me: The other functions that add colors to the palette like imagecolorallocate() support the alpha value correctly, and even for this function the manual states that it is supposed to.

Any ideas what could be wrong?

  • 写回答

1条回答 默认 最新

  • duanchendu69495 2013-01-18 21:48

    Alpha support (and its associated parameter) was added in v5.4.0, as it clearly states in the function's manpage changelog: http://php.net/imagecolorset#refsect1-function.imagecolorset-changelog

    You'll have to upgrade your PHP version, or not use alpha.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?



  • ¥20 用vivado写数字逻辑实验报告撰写,FPGA实验
  • ¥15 为什么shp文件会有这种小方块?
  • ¥15 ecplise在连接数据库时显示加载驱动成功但是数据库连接失败
  • ¥15 visionmaster启动失败,提示为“机器不满足授权而被禁用”
  • ¥15 IDEA中圈复杂度如何具体设置
  • ¥50 labview采集不了数据
  • ¥15 Multisim红外倒车雷达仿真中距离问题
  • ¥15 请上面代码做什么处理或什么混淆
  • ¥15 英雄联盟自定义房间置顶
  • ¥15 W5500网线插上无反应