Hi, I have some PHP code which I can use but I can't seem to find the equivalent code in C. Here's the code from the PHP manual:
Code:
// get a color
$start_x = 40;
$start_y = 50;
$color_index = imagecolorat($im, $start_x, $start_y);
// make it human readable
$color_tran = imagecolorsforindex($im, $color_index);
Basically i'm after any way to read out the palette (index + colour), cross reference colours, or just return the palette index from a position.
I'm looking through gd.h but seem unable to find the appropriate function(s), any suggestions appreciated!