0

does anyone have an idea how to easily convert a char* to a Gdiplus::Bitmap in C++?

Background: I'm using the wkhtmltox library to generate a BMP from a website and I need to draw it on a Gdiplus::Graphics.

Thanks!

mrsubwoof
  • 183
  • 1
  • 11
  • How about through the [constructor](http://msdn.microsoft.com/en-us/library/windows/desktop/ms536315%28v=vs.85%29.aspx)? – Captain Obvlious Dec 01 '14 at 14:46
  • The accepted answer at http://stackoverflow.com/questions/4598872/creating-hbitmap-from-memory-buffer should work, though it involves an extra copy to create the IStream. – Esme Povirk Dec 02 '14 at 00:42

0 Answers0