We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

How can I use imagecolorat for Phalcon\Image\Adapter\Gd ?

I need to get color of spesific position in image so how can I use imagecolorat in GD adapter



51.1k

If you want to go with OOP style, then just extend Phalcon\Image\Adapter\Gd and implement imagecolorat method. Or you can use it by simply calling it in your code imagecolorat(). If you don't know how to use this method, then the official PHP documentation will help you https://php.net/manual/en/function.imagecolorat.php



1.2k
edited Aug '15

After Implement imagecolorat by extending Adapter\Gd how can I use that ? with di->set or? Can you give me quick example please. I have problems on this