I have a Stream with an bit image content and I create image from the stream using followed code.
byte[] bits = page.EnhMetaFileBits;
using (var ms = new MemoryStream((byte[])(bits)))
{
using (var imageFromStream = Image.FromStream(ms))
{
//....
}
}
The code works properly but when it is run on Windows 10 Professional I receive a big image whats about 5000 x 7000 pixels with 600 dpi resolution. However, on Windows Server 2012R2 I obtain a tiny image 800 x 1100 pixels with 80 dpi and it is too small for my aims.
The size of the bytes array is almost the same, the versions of the System. Imaging is equal.
I suspect that it is related to an operating system setting, but I don't know which one.