I think resizing with keeping the aspect ratio is the way to go. The menu pictures we have right now have been created in the same way. Basically something like:
double ratio = 32. / std::max(image_w, image_h); resize(image_w * ratio, image_h * ratio); -- https://code.launchpad.net/~widelands-dev/widelands/buildicon_playercolors/+merge/211184 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/buildicon_playercolors. _______________________________________________ Mailing list: https://launchpad.net/~widelands-dev Post to : widelands-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~widelands-dev More help : https://help.launchpad.net/ListHelp