CODE
swizzle.exe - written by cypher35 on 7-19-05
================================================================
This is a simple bitmap swizzling utility that i have created
in my spare time. This program was created for educational
purposes and what you do with it is your own business.
----------------------------------------------------------------
Useage:
swizzle [filename.ext] -s -u -inplace
Parameters:
-s swizzles the image(s) selected (default)
-u unswizzles the image(s) selected
-inplace swizzles or unswizzles the files in place, deleting
the original file
if the filename is one or more word, put it in quotes.
wildcards are accepted (ex. *.bmp)
----------------------------------------------------------------
if -inplace is not added, the images will simply be renamed
with a _uns or _swi appended to them. No files will be
overwritten. If a file with the same name already exists in
the current directory, a number is appended to the name.
Also, one minor note. I have not encountered any swizzled images that have either:
1) a width greater than 2x it's height
2) a height greater than it's width
Due to the nature of the method for swizzling images, every swizzled image comes out as a horizontal rectangle or a perfect square. However, in the event that an oddly sized file comes along, i have had to guess how to handle it. It should work, but if you find that the program is producing strange results with images meeting the above criteria, let me know and send me an example file so i can fix the problem.