I created a console application and a MVC-Website. On both are the exact code of Loading Metafiles like WMF.
I want to detect the size of these files.
System.Drawing.Image imgFile= System.Drawing.Image.FromFile(mfFile);
int pixelWidth = imgFile.Width;
int pixelHeight = imgFile.Height;
My console Application detects 1921x1081px (which is correct) and my Web-Application detects 1025*769px.
Does anyone know why the exact same file has different Dimensions in dependency of the application?