Image files are ASCII files holding the description of one image.
For more informations about the grammar below, heed toward this wikipedia page
The complete syntax used in these text files can be described like so:
image ::= 'IMAGE' data 'IMAGE_END' data ::= 'WIDTH' <value> 'HEIGHT' <value> 'PIXELS' pixels pixels ::= pixel pixels | pixel pixel ::= <value>
Note
This type of grammar is a standard. For example, the first line means:
An ‘image’ is composed of the word IMAGE followed by ‘data’ and finally the token IMAGE_END.
To know what ‘data’ means, one just has to go to the next line.
A shape file is a structured ASCII file holding the description of graphical shapes.
For more informations about the grammar below, heed toward this wikipedia page
The complete syntax used in these text files can be described like so:
shapes ::= shape | shape shapes | comment shapes shape ::= 'SHAPE' <number> 'TYPE' type_name data 'SHAPE_END' comment ::= 'COMMENT' ... 'COMMENT_END' type_name ::= 'SQUARE' | 'RECTANGLE' | 'CIRCLE' | 'ELLIPSE' | 'POLYGON' data ::= envelope | list envelope ::= 'ORIGIN' <x> <y> 'WIDTH' <width> 'HEIGHT' <height> list ::= 'NB_POINTS' <number> points points ::= point points | point point ::= 'POINT' <x> <y>