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
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