Share via


2.1.7 SEGMENT Structure

In version 2 of the serialization format, the SEGMENT structure defines the structure of a compound curve figure. It contains only one byte, which represents type of the segment. Segments are stored only for figures whose Figure Attribute value is 0x03.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Segment Type

Segment Type (1 byte): Determines the type of the segment within the figure.

Valid values are as follows:

  • 0 (0x00): Segment is a line.

  • 1 (0x01): Segment is an arc.

  • 2 (0x02): Segment is a first line.

  • 3 (0x03): Segment is a first arc.

The first line and first arc segments mark the start of the sequence of segments of the same type, which are line and arc respectively. Subsequent segments have types line and arc.