If I wanted to get all the pixels from the current display and load them into a c++ array, what would be the best way to do that. I've tried getting each pixel individually but as expected, it is incredibly slow. Is there a better way to do so?
Note: I would prefer an OS-independent solution but I don't expect there to be an easy one so Windows solutions would be preferred.