where p is a picture and I get an unsupported Format Exception. Getting in the exception it says that type 151 (SaveAsJPEG) is not supported in windows.
Is there a workaround to that? Why on earth saving as jpeg is not supported on windows.
I am just trying to scale down an image (load, scale it down and save it). Any other ideas?
Thanks Norman,
How do I install gdi+? I downloaded the api from Microsoft, but it is a set of directories (no installer).
Should I place the directory gdiplus in the Windows directory? (I am running Windows 8 64bit).
Or should I just put the .dll in the System 32 folder?
[quote=127836:@FOTIS GEORGIADIS]Thanks Norman,
How do I install gdi+? I downloaded the api from Microsoft, but it is a set of directories (no installer).
Should I place the directory gdiplus in the Windows directory? (I am running Windows 8 64bit).
Or should I just put the .dll in the System 32 folder?[/quote]
Hmm Windows 8 should already have it
Check if Use GDI plus is turned on for your app in the Windows build section
[quote=127854:@Norman Palardy]See what the Build Settings > Windows > Use GDI Plus setting is
If its off turn it on[/quote]
It was indeed off. I turned it on, but I still get the unsupported format exception…
So far it seems to be something that is not working in Windows 8.
As I said, it works perfectly in Windows 7 (32bit). I tested it, compiled it, and the compiled application (which works on Win 7) fails with the unsupported format exception both in windows 8 64bit and in windows 8 32bit (it was compiled with UseGDIPlus=True).
I also tested it on a Windows 8.1 64 bit real PC (no VM) and it shows the same error!
If I find out anything else, I will post it…
If anyone has any solutions, please share.
Concerning the MBS Plugin, since I have them, I found the SaveAsJPEGMBS method, but it needs the picture to be bitmap, and I don’t know how to convert it to bitmap before I save it… Maybe Christian can say more about this…