mxgmn / WaveFunctionCollapse

Bitmap & tilemap generation from a single example with the help of ideas from quantum mechanics
Other
23.18k stars 1.24k forks source link

Wrong extension or Image Format for output files #1

Closed pansk closed 7 years ago

pansk commented 7 years ago

In this PR I changed the extension. Another fix could be adding a second parameter with System.Drawing.Imaging.ImageFormat.Bmp

pansk commented 7 years ago

It's funny because the Microsoft documentation itself is a bit confused on the subject, and in their code example they use .bmp as extension. https://msdn.microsoft.com/en-us/library/ktx83wah(v=vs.110).aspx

mef51 commented 7 years ago

had to make the same change .bmp --> .png

edit: works fine on windows, i only need to change the extension on ubuntu

pansk commented 7 years ago

I had the problem on Windows 10 and vs2015. Preview didn't complain, but another viewer did.

mxgmn commented 7 years ago

@pansk @mef51 Thanks. I moved everything to png. Didn't know that standard library works with pngs.