Expand Minimize
This topic has not yet been rated - Rate this topic

2.3.6.38 SET_COLORTABLE Record

The SET_COLORTABLE record sets the color table.


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

RecordSize

RecordFunction

EscapeFunction

ByteCount

ColorTable (variable)

...

RecordSize (4 bytes): A 32-bit unsigned integer that defines the number of WORDs in the record.

RecordFunction (2 bytes): A 16-bit unsigned integer that defines this record type. The lower byte MUST match the lower byte of the RecordType enumeration (section 2.1.1.1) value META_ESCAPE.

EscapeFunction (2 bytes): A 16-bit unsigned integer that defines the escape function. The value MUST be 0x0004 (SET_COLORTABLE) from the MetafileEscapes enumeration (section 2.1.1.17).

 

ByteCount (2 bytes): A 16-bit unsigned integer that specifies the size, in bytes, of the ColorTable field.

ColorTable (variable): A ByteCount length byte array containing the color table.

See section 2.3.6 for the specification of other escape record types.

 
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.