Skip to content

Instantly share code, notes, and snippets.

View CretaceousConstructor's full-sized avatar

CretaceousConstructor

  • SpaceInvader
  • MarsMars
View GitHub Profile
@superwills
superwills / GDI+PNGJPG.cpp
Last active September 7, 2021 17:56
GDI+, Gdiplus Image Loading and Saving PNG or JPG
#include <windows.h>
#include <gdiplus.h>
#include <stdio.h>
using namespace Gdiplus;
#pragma comment( lib, "gdiplus.lib" )
#pragma warning( disable : 4018 )
#pragma warning( disable : 4996 )
LRESULT CALLBACK WndProc( HWND, UINT, WPARAM, LPARAM );