Convert image file format between GIF/BMP/JPG/PNG.
Wrapper for the undocumented SHConvertGraphicsFile function found in shlwapi.dll version >= 6.00
Source code is in the attached ZIP file.
...
For your information, i have written gConvert to create full 32-bit ARGB bitmap (from transparent PNG file), that will be used with the next WinLIFT WSA API skAlphablend.
...
I suggest to change the name of the TrueOrFalse parameter to something more explanatory, such bOverwrite.
Yes, the last parameter is a boolean flag, %TRUE means OverWrite destination.
Indeed I am always using it in OverWrite mode myself.
...
I have read that it doesn't work with Windows 7. Is that true?
I did some test,
with GetProcAddress
- Vista 32: Conversion OK
- Seven 32: No adress returned
- Seven 64: No address returned
With GetProcAddressDirectly by Semen
- Vista 32: Conversion OK
- Seven32: GPF
- Seven64: GPF
Maybe some update to Seven made it unusable.
Patrice, is it still working on your Seven ?
I just checked with the current version of Seven, and you and José are correct, it doesn't work anymore with it :-[
That's the problem with undocumented API, it could be changed at any time without prior notification.
...
Well, we still have GDI+.
Speaking of...
I just downloaded José's help file.
One word José...
Thank you, thank you, thank you.