Returns pixel of image in any indexed format.
procedure IndexGetSrcPixel(Src: PByte;
SrcInfo: PImageFormatInfo;
var Index: LongWord);ImagingFormats (at line 222)
Returned value is index to the palette.