LOADING STUFF...

PHP:imagecolorat()的用法_GD库图像处理函数

技术教程2小时前发布 北陌
16 0 0

PHP:imagecolorat()的用法_GD库图像处理函数

imagecolorat

(PHP 4, PHP 5)

imagecolorat — 取得某像素的颜色索引值

说明

int imagecolorat
( resource $image
, int $x
, int $y
)

返回 image 所指定的图形中指定位置像素的颜色索引值。

如果 PHP 编译时加上了 GD 库 2.0
或更高的版本并且图像是真彩色图像,则本函数以整数返回该点的 RGB
值。用移位加掩码来取得红,绿,蓝各自成分的值:

Example #1 取得各自的 RGB 值

$im

© 版权声明

相关文章

暂无评论

暂无评论...