How can I load a 32-bit png resource?

Mar 6, 2013 at 5:28pm
I added a 32bit png image as a resource. Now how can I load it with either GDI or WIC?

Edit: I found this:

http://msdn.microsoft.com/en-us/library/windows/desktop/dd756685(v=vs.85).aspx

So my new question is how do I add a binary resource in VS2010? When I choose the "Custom" resource option it adds the file "binary1.bin" with no apparent way of changing it. If I add it manually in the resource file VS removes it every time I build.
Last edited on Mar 6, 2013 at 8:05pm
Mar 7, 2013 at 12:14pm
Anyone?? Just to clarify I can import the image as a normal PNG resource but it seems to lose the alpha channel. Therefore I want to import it as a raw binary resource.
Mar 7, 2013 at 1:10pm
would use OpenCV
Topic archived. No new replies allowed.