获取颜色RGB值
创建时间:2020-06-21 作者:牛哥 浏览次数:426
function getcolor($color) { $color = preg_replace ("^#","",$color); $r = $color[0].$color[1]; $r = hexdec ($r); $b = $color[2].$color[3]; $b = hexdec ($b); $g = $color[4].$color[5]; $g = hexdec ($g); $color = imagecolorallocate ($this->image, $r, $b, $g); return $color; }
- 上一篇:没有了
- 下一篇:页面跳转