DRAWX Vector Graphics
From Just Solve the File Format Problem
(Difference between revisions)
(Created page with "{{FormatInfo |formattype=electronic |subcat=Graphics |extensions={{ext|vec}} |released=1991 }} A vector graphics format for use with a program called DRAWX. ==Identification...") |
|||
(2 intermediate revisions by one user not shown) | |||
Line 16: | Line 16: | ||
* L: Draw a straight line segment from the previous current position to the specified position, and then set the new current position to the specified position. | * L: Draw a straight line segment from the previous current position to the specified position, and then set the new current position to the specified position. | ||
* X: End of file. X and Y coordinates are ignored. | * X: End of file. X and Y coordinates are ignored. | ||
− | |||
The drawing area has the top-left corner at (0,0) and the bottom right corner at (1000,1000); these numbers are then scaled to fit into the drawing rectangle. | The drawing area has the top-left corner at (0,0) and the bottom right corner at (1000,1000); these numbers are then scaled to fit into the drawing rectangle. | ||
+ | |||
+ | (Note: This description is not an "official" description of the file format, although it works with the known files.) | ||
+ | |||
+ | ==Software== | ||
+ | * [http://zzo38computer.org/prog/drawx.zip DRAWX] | ||
+ | * [[Farbfeld Utilities]] |
Latest revision as of 03:36, 11 November 2017
A vector graphics format for use with a program called DRAWX.
[edit] Identification
The first byte is probably "P" while the byte fifth from last is probably "X".
[edit] Description
Consists of a number of five-byte records, each consisting of the command code (a single ASCII character), followed by two small-endian 16-bit numbers (the X and Y coordinates). The commands are:
- P: Set the current position to the specified position.
- L: Draw a straight line segment from the previous current position to the specified position, and then set the new current position to the specified position.
- X: End of file. X and Y coordinates are ignored.
The drawing area has the top-left corner at (0,0) and the bottom right corner at (1000,1000); these numbers are then scaled to fit into the drawing rectangle.
(Note: This description is not an "official" description of the file format, although it works with the known files.)