1
Answer

GDI+ rendering differences between XP and Server 2008 when saving WMF as PNG

Vlad

Vlad

15y
3.2k
1

I have a problem saving WMF as PNGs on the staging server (Windows Server 2008).
Locally (Windows XP) everything works as expected. Here is the png generated on my development XP machine

 

and here is the image generated on the staging server( Windows Server 2008)


Hopefully the images loaded fine when you read this and you can clearly see they are not identical even though the same wmf file was used. The image generated on the server has the text way too bold.

Here is the code

 System.Drawing.Image img = System.Drawing.Image.FromStream(stream);
img.Save(HttpContext.Current.Server.MapPath(outputFile));

Any ideas how I could fix this so that the rendering on the staging server would be the same as the one on my development machine ?

Thanks in advance !
Answers (1)