Here is a really long overdue update... I just finished final exams and finally have some time.
Changes:
Works with any color depth - Indexed, Grayscale, and 24-bit RGB color PNGs will work now. Also, any transparency/16-bit color is discarded, so pretty much any valid PNG file should load just fine. All color is converted to grayscale, ranging from black at height 0 (water) to white at height 15 (highest mountain). So no more messing around with problematic palettes!
The "Are you sure you want to load...?" dialog was removed since it's possible to close the file browser to cancel.
Future plans:
A separate window showing the loaded image and map preview, with adjustment options (probably similar to SV0 Creator's interface).
Maybe eventually something like the
map generator could use it as well...
Let me know if there are any problems... so far I've tested it on OS X and Win2K, though there aren't any OS-specific changes. Also, I'm open to suggestions for the map load window interface and features... it's all still in the planning stages.
Edit: Some small bug fixes
Fixed incorrect loading of 4-bit images, slightly modified the error messages, and changed the grayscale conversion to use a bit shift instead of division (probably almost no difference either way).