4.1.6 MultiOpaqueRect

The following is an annotated dump of a MultiOpaqueRect (section 2.2.2.2.1.1.2.6) Primary Drawing Order.

 00000000 09 12 bf 01 87 01 1c 01 f1 00 12 00 5c ef 04 16 ............\...
 00000010 00 08 40 81 87 81 1c 80 f1 01 01 01 10 80 f0 01 ..@.............
 00000020 10 ff 10 10 80 f1 01                            .......
  
 09 -> PRIMARY_DRAWING_ORDER::controlFlags = 0x09
 0x09
 = 0x01 |
   0x08
 = TS_STANDARD |
   TS_TYPE_CHANGE
  
 12 -> PRIMARY_DRAWING_ORDER::orderType = TS_ENC_MULTIOPAQUERECT_ORDER
  
 bf 01 -> PRIMARY_DRAWING_ORDER::fieldFlags = 0x01bf
 Binary of 0x01bf = 0000 0001 1011 1111
 Fields 1-6,8-9 are present
  
 87 01 -> MULTI_OPAQUERECT_ORDER::nLeftRect = 0x0187 = 391 
 1c 01 -> MULTI_OPAQUERECT_ORDER::nTopRect = 0x011c = 284 
  
 f1 00 -> MULTI_OPAQUERECT_ORDER::nWidth = 0x00f1 = 241 
 12 00 -> MULTI_OPAQUERECT_ORDER::nHeight = 0x0012 = 18 
  
 5c -> MULTI_OPAQUERECT_ORDER::RedOrPaletteIndex = 0x5c
 ef -> MULTI_OPAQUERECT_ORDER::Green = 0xef
 MULTI_OPAQUERECT_ORDER::Blue not present
  
 04 -> MULTI_OPAQUERECT_ORDER::nDeltaEntries = 0x04 = 4 entries
  
 16 00 -> VARIABLE2_FIELD::cbData = 0x16 = 22 bytes
  
 08 40 81 87 81 1c 80 f1 01 01 01 10 80 f0 01 10
 ff 10 10 80 f1 01 -> VARIABLE2_FIELD::rgbData
  
 08 40 -> DELTA_RECTS_FIELD::zeroBits = binary:0000 1000 0100 0000
  
 Rectangle #1:
 81 87 -> Delta Left = 0x187 = 391
 81 1c -> Delta Top = 0x11c = 284
 80 f1 -> Delta Width = 0xf1 = 241
 01 -> Delta Height = 0x1 = 1
 Rectangle is (391, 284, 391 + 241 = 632, 284 + 1 = 285)
  
 Rectangle #2:
 Delta Left = 0 (zeroBit is 1)
 01 -> Delta Top = 1
 01 -> Delta Width = 1
 10 -> Delta Height = 0x10 = 16
 Rectangle is (391 + 0 = 391, 284 + 1 = 285, 391 + 1 = 392, 285 + 16 = 301)
  
 Rectangle #3:
 80 f0 -> Delta Left = 0xf0 = 240
 Delta Top = 0 (zeroBit is 1)
 01 -> Delta Width = 1
 10 -> Delta Height = 0x10 = 16
 Rectangle is (391 + 240 = 631, 285 + 0 = 285, 631 + 1 = 632, 285 + 16 = 301)
  
 Rectangle #4:
 ff 10 -> Delta Left = 0xffffff10 = -240
 10 -> Delta Top = 0x10 = 16
 80 f1 -> Delta Width = 0xf1 = 241
 01 -> Delta Height = 0x1 = 1
 Rectangle is (631 - 240 = 391, 285 + 16 = 301, 391 + 241 = 632, 301 + 1 = 302)