Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15679

VB6 Question: Is there a method of reading an embedded image in a DLL using GDI+?

$
0
0
Is there a method of reading an embedded image in a DLL using GDI+?

I have previously been using an undocumented API named PrivateExtractIcons to extract PNGs from DLLs or EXEs and then place them into a picturebox but the method I am currently using returns the PNG with a hard jpeg-like background. This is no good as I'm trying to insert the PNG into my GDi+dock that requires transparent PNGs.

I was hoping there was a GDI+ function that might be able to extract a PNG image directly from an EXE or DLL. IF there is such a thing please point me in the right direction. I have found something written for Powerbasic but before I try to hack that I was hoping you chaps might have a better idea?

Viewing all articles
Browse latest Browse all 15679

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>