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


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

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