{I+=codeWee;}
[C++] GDI+ : How to load Image File
#include <GdiPlus.h>
using namespace Gdiplus;
#pragma comment(lib, "Gdiplus.lib")


	GdiplusStartupInput gdiplusStartupInput;
	ULONG_PTR           gdiplusToken;
	
	GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL);
	
	Gdiplus::Bitmap * image = Gdiplus::Bitmap::FromFile(filename);

	if (image == NULL)
		return FALSE;
	if (Gdiplus::Ok != image->GetLastStatus())
		return FALSE;

	GdiplusShutdown(gdiplusToken);

HTML | PHP | C++ | DirectX11 | Javascript | C# | HTML5 | ASP | SQL | General | CSS | Oculus Rift | Unity3d | Virtools SDK | Tip | NSIS | PowerShell | node.js | Web API | RTSP | All
Copyright© 2016 CodeWee.com All rights reserved.