I want to capture screenshots of the whole screen and send them using tcp sockets. In python this can be done using PIL
from PIL import Image im = grab() im.save(filename)
It is cross-platform and the size of resulting images is mostly less than 500KB. I can't use python because the user may not have python installed and the screenshot utility is a part of a bigger program written is C++ which also handles the networking part. Is it possible to get all these features of the above given code using some C++ library or somehow use the python code as a library for C++?