PNG Resource to IPicture
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hi All, I'm having '.jpeg' and '.png' image files in my resource. To convert then to IPicture, I'm loading the image to HGLOBAL and from it i'm creating a IStream using CreateStreamOnHGlobal() API. Till this point i'm getting the IStream pointer for both the image types. I'm using OleLoadPicture() to convert the IStream to IPicture... this is working file for '.jpeg' images but for '.png' i'm getting the IPicture as NULL and the HRESULT value i'm getting is some negative value.. How can i convert IStream to IPicture for '.png' images... These files are not in disk they are in my project itself as resources... Thanx...
Do your Duty and Don't expect the Result