C16 Tools/Documentation
Don't panic! The documentation is also contained in the
download archives (README for Windows, Man-page for Linux).
In general, <program> --help should help, too.
c16topng
Synopsis
c16topng [options] INPUT.c16
Description
c16topng takes a C16 file as argument and
converts it to PNG images. For this, it extracts the subimages
from the sprite and writes them to disc using the following
convention:
Take the input filename and strip of any directories and its
extension. Then take the rest for every image and append _i.png,
where i is the image number.
~/ > c16tonpng ../tux/tux.c16
~/ > ls
| tux_0.png |
tux_2.png |
| tux_1.png |
tux_3.png |
Note that the image number starts with zero like in the sprite
itself.
Options
- -o, --output=<output_prefix>
- Use <output_prefix> to generate the output filenames:
<output_prefix>_<image_number>.png
Otherwise, we use the name of the input file.
- -C, --is-c16
- Treat input file as C16 file. (default)
- -S, --is-s16
- Treat input file as S16 file.
- -B, --is-blk
- Treat input file as BLK file.
- -s, --silent
- When this option is given, c16topng will
suppress some informative output.
- -h, --help
- Print a little help screen and exit.
- -v, --version
- Prints copyright and version information and exit.
It is not important, which version (the short or the long) of an
option is used. The two following examples do exactly the same:
c16topng -s tux.c16 --output=penguin
versus
c16topng --silent -o penguin tux.c16
pngtoc16
Synopsis
pngtoc16 [options] PREFIX
Description
pngtoc16 is a tool to convert PNG files to
C16 files. It currently only supports 565 Bitmaps and
non-interlaced PNGs. As input several PNG file are taken, from
which a C16 Sprite file is generated. The input files must be
named after the following convetion:
PREFIX_<number of image in sprite>.png
The number has to start with zero and must be continunous.
Numbers like PREFIX_01.png are
NOT allowed. It must be
PREFIX_1.png.
Options
- -o, --output=<filename>
- Use filename for output file. If omitted,
PREFIX.c16 is used.
- -s, --silent
- When this option is given, pngtoc16 will
suppress some informative output.
- -v, --verbose
- Be more verbose, while processing images.
- -h, --help
- Print a little help screen and exit.
- -V, --version
- Prints copyright and version information and exit.