I have some code I found that takes screenshots and saves them as a bitmap image. I'm trying to get it to save the screenshots as .jpg and I don't know how to. I don't want to use a large third party library if I don't have to, I would prefer something small and specialised. Any ideas? I would prefer the screenshot not be written to file then converted, but rather be converted "in ram".