2.2.2.21 Scan Object

The Scan Object specifies a collection of scanlines.


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

Count

Top

Bottom

ScanLines (variable)

...

...

Count2

Count (2 bytes): A 16-bit unsigned integer that specifies the number of horizontal (x-axis) coordinates in the ScanLines array. This value MUST be a multiple of 2, since left and right endpoints are required to specify each scanline.

Top (2 bytes): A 16-bit unsigned integer that defines the vertical (y-axis) coordinate, in logical units, of the top scanline.

Bottom (2 bytes): A 16-bit unsigned integer that defines the vertical (y-axis) coordinate, in logical units, of the bottom scanline.

ScanLines (variable): An array of scanlines, each specified by left and right horizontal (x-axis) coordinates of its endpoints.


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

Left

Right

Left (2 bytes): A 16-bit unsigned integer that defines the horizontal (x-axis) coordinate, in logical units, of the left endpoint of the scanline.

Right (2 bytes): A 16-bit unsigned integer that defines the horizontal (x-axis) coordinate, in logical units, of the right endpoint of the scanline.

Count2 (2 bytes): A 16-bit unsigned integer that MUST be the same as the value of the Count field; it is present to allow upward travel in the structure.