PHP IMG2TXT
程序员文章站
2022-05-03 19:26:14
...
i!lI;:,\"^`'. ";function getimgchars($color_tran,$chars){ $length = strlen($chars); $alpha=$color_tran['alpha']; $r=$color_tran['red']; $g=$color_tran['green']; $b=$color_tran['blue']; $gray = intval(0.2126 * $r + 0.7152 * $g + 0.0722 * $b); if($gray==0){ return '.'; } if($gray'.$char."
上一篇: di 依赖注入实现的意义是什么?