How can I take a screenshot and save it as JPEG on Windows?

前端 未结 11 1796
暖寄归人
暖寄归人 2020-12-02 15:11

I\'m trying to find a (somewhat) easy way to take a screenshot on window and save the resulting HBITMAP as a JPEG. The tricky part here is that since the code is in C I can\

11条回答
  •  孤城傲影
    2020-12-02 15:34

    Have you had a look at the FreeImage Project? Yeah, it's an external library, but it's pretty small (~1Mb). Does just about anything you'd want, with images, too. Definitely worth knowing about, even if not for this project.

提交回复
热议问题