Java uses images for different types. The first distinction is if the image contains text. If so there must be language specific images. All images to be used are initialized through an ImageLoader which reads a text file that specifies the image. Together with the image specific information are stored there.
l <fnm*.ext> {<coords>} // a single language specific file
The language specific files are looked up by replacing the the wildcard with the local string and then loading the image. If the image cannot be found the default image (without local extension) will be loaded.
If the local is 'de_CH' and the filename specified is 'screenshot*.png' then the following files are tried to load:
The first file that can be loaded will be returned.
The file name is followed by an optional list of points defining a polygon that can be used as a map for the image. The coordinates are entered in the form x-y. Multiple coordinates are separated by a space.
o <fnm> // a single image file
n <fnm*.ext> <number> // a series of numbered image files, whose
// filenames use the numbers 0 - <number>-1
s <fnm> <number> // a strip file (fnm) containing a single row
// of <number> images
g <name> <fnm> [ <fnm> ]* // a group of files with different names;
// they are accessible via
// <name> and position _or_ <fnm> prefix
and blank lines and comment lines.
The numbered image files (n) can be accessed by the <fnm> prefix and <number>
The strip file images can be accessed by the <fnm> prefix and their position inside the file (which is assumed to hold a single row of images).
The images in group files can be accessed by the 'g' <name> and the <fnm> prefix of the particular file, or its position in the group.