Here's a quick and easy question: using GDI+ from C++, how would I load an image from pixel data in memory?
Use SHCreateMemStream, it takes a pointer to the data and the size of the data.
IStream *pStream = SHCreateMemStream((BYTE *) InputBuffer, Size);
// Do what you want
pStream->Release();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With