2.2.1.5 Region Object

The Region Object defines a potentially non-rectilinear shape defined by an array 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

nextInChain

ObjectType

ObjectCount

RegionSize

ScanCount

maxScan

BoundingRectangle

...

...

aScans (variable)

...

nextInChain (2 bytes): A value that MUST be ignored.<41>

ObjectType (2 bytes): A 16-bit signed integer that specifies the region identifier. It MUST be 0x0006.

ObjectCount (4 bytes): A value that MUST be ignored.<42>

RegionSize (2 bytes): A 16-bit signed integer that defines the size of the region in bytes plus the size of aScans in bytes.

ScanCount (2 bytes): A 16-bit signed integer that defines the number of scanlines composing the region.

maxScan (2 bytes): A 16-bit signed integer that defines the maximum number of points in any one scan in this region.

BoundingRectangle (8 bytes): A Rect Object (section 2.2.2.18) that defines the bounding rectangle.

aScans (variable): An array of Scan Objects (section 2.2.2.21) that define the scanlines in the region.