I would like to implement a RDP client in C++
that is able to get the color value of all pixels of the screen and dump them to a file. I know this is conceptually different from how RDP works but I need it for my application. I am trying to make use of freerdp but I am not sure how can I efficiently write a client that simply dumps all pixels in a file.
So far my best attempt is making use of the function gdi_GetPixel_32bpp
but of course calling this function for each pixel in turn is far from efficient.
A solution that makes use of another library will also be greatly appreciated.