In sprite-based systems, it's common to fake rotation of a sprite by having many different images, each showing it rotated an extra few degrees.
Is there any free tool which will take a single image, and output a single image containing several rotations? It should also ideally let us control how many images are in each row.
e.g if I have a 32x32 sprite and I want it rotated at 10 degree intervals, the tool might generate a 320x32 file or a 160x64 file
Download imagemagick (command-line imaging tools)
convert image.png -rotate 10 10-image.png
convert -page +0+0 image.png -page +32+0 10-image.png -mosaic final.png
You can have as many -page +X+Y imagefile
as you want on the line. The size of the final image will be calculated from the extents of the page locations you use and the sizes of the input files.
You can string this together with the scripting language of your choice. There are bindings for most major languages if you don't want to call out to command-line tools.