I want to load PNG-file from resources. There is a roughly MFC-way (with CResourceStream):
CImage img;
CResourceStream str(0, MAKEINTRESOURCE(id), _T("PNG"));
img.Load(&str);
CBitmap *bmp(CBitmap::FromHandle(img.operator HBITMAP());
But a project is MFC-less and ATL-less. How to write to load png in nonMFC style? As I understand it, this purpose can be achieved by GDI+
EDIT: There is an appropriate implementation of loading png
to stream from the answer