2.5.156 GradStop

The GradStop structure specifies a gradient stop for a gradient fill.


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

xclrType

xclrValue

...

numPosition

...

...

numTint

...

...

xclrType (2 bytes):  An XColorType that specifies how the color information is stored.

xclrValue (4 bytes): An unsigned integer that specifies the color data. If xclrType equals 0x00 or 0x04, this value MUST be 0. If xclrType equals 0x01, this field contains an IcvXF that specifies color in the color table. If xclrType equals 0x02, this field contains a LongRGBA that specifies an RGBA value. If xclrType equals 0x03, this field contains a ColorTheme that specifies a theme color

numPosition (8 bytes): An Xnum (section 2.5.342) that specifies the gradient stop position as the percentage of the gradient range. The gradient stop position is the position within the gradient range where this gradient stop’s color begins. MUST be greater than or equal to 0.0 and less than or equal to 1.0.

numTint (8 bytes): An Xnum that specifies the tint of the color. MUST be greater than or equal to -1.0 and less than or equal to 1.0. Positive values lighten the color, and negative values darken the color.