Unpacks cursors from a CURS file into a directory

The first parameter must be the name of the directory in which the cursors should be unpacked. The program creates the directory automatically if it does not yet exist.

The second parameter specifies the filename of the CURS file to read. If the parameter is missing or is "-" then the input is read from stdin.

A CURS file does not contain any information about cursor image dimensions. So if the cursors in the CURS file are not the default 16x16 pixels then you have to use the width and height parameters to tell the program the real size of the cursor images.

If you are reading input from stdin then you must also specify the number of cursors to read. The default is 8 cursors.


unpackcurs [OPTION]... DIRECTORY [INPUT]


-W, --width     The width of the cursor images (Default: 16)
-H, --height    The height of the cursor images (Default: 16)
-q, --quantity  The number of cursors in the CURS file (Default: Auto or 8)
-d, --debug     Shows stacktrace when an error occurs
-h, --help      Display help and exit
-V, --version   Display version and exit  


The following command reads Wasteland's curs file and writes each cursor from it to two PNGs (cursor image and transparency mask image) in the specified output directory:

unpackcurs c:\cursors c:\wland\curs