Skip to content

Instantly share code, notes, and snippets.

@dbdeadka
dbdeadka / screenshot.cpp
Created November 8, 2018 19:38 — forked from prashanthrajagopal/screenshot.cpp
Take a screenshot and save as jpeg in c++
#include <stdio.h>
#include <windows.h>
#include <gdiplus.h>
#include <time.h>
int GetEncoderClsid(const WCHAR* format, CLSID* pClsid) {
using namespace Gdiplus;
UINT num = 0;
UINT size = 0;