New library for Mega and low cost HX8357B/C and ILI9481 480 x 320 displays

I want make a cursor line on the tft screen. It is a line with inverse colors.
Need a function that returns the color of the pixel on the screen.
Something like this: TColor GetColor(int x,int y);
How to do it?