开发者

Using PHP to get the colour of image

开发者 https://www.devze.com 2023-04-11 23:30 出处:网络
I\'m using a colour scale from blue to red, which is a PNG set at 100px wide. I would like to define a specific range i.e. pixels 10-14 and e开发者_如何学Goxtract the colours from there.

I'm using a colour scale from blue to red, which is a PNG set at 100px wide. I would like to define a specific range i.e. pixels 10-14 and e开发者_如何学Goxtract the colours from there.

Is this at all possible with PHP?


I think the imagecolorat() function is exactly what you want.

0

精彩评论

暂无评论...
验证码 换一张
取 消