2.5.162 XFPropGradient

The XFPropGradient structure specifies 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

type

numDegree

...

numFillToLeft

...

numFillToRight

...

numFillToTop

...

numFillToBottom

...

type (4 bytes): A signed integer that specifies the gradient type. This value MUST be a value from the following table.

Value

Meaning

0x00000000

Linear gradient.

0x00000001

Rectangular gradient.

numDegree (8 bytes): An Xnum (section 2.5.172) structure that specifies the gradient angle, in degrees, for linear gradients. The gradient angle specifies the angle at which gradient strokes are drawn. If type equals 0x00000001, this value MUST equal 0.0.

numFillToLeft (8 bytes): An Xnum structure that specifies the left coordinate of the inner rectangle for rectangular gradients, where (0.0,0.0) is the upper-left corner of the inner rectangle. This value MUST be greater than or equal to 0.0 and less than or equal to 1.0. If type equals 0x00000000, this value MUST equal 0.0.

numFillToRight (8 bytes): An Xnum structure that specifies the right coordinate of the inner rectangle for rectangular gradients, where (0.0,0.0) is the upper-left corner of the inner rectangle. This value MUST be greater than or equal to 0.0 and less than or equal to 1.0. If type equals 0x00000000, this value MUST equal 0.0.

numFillToTop (8 bytes): An Xnum structure that specifies the top coordinate of the inner rectangle for rectangular gradients, where (0.0,0.0) is the upper-left corner of the inner rectangle. This value MUST be greater than or equal to 0.0 and less than or equal to 1.0. If type equals 0x00000000, this value MUST equal 0.0.

numFillToBottom (8 bytes): An Xnum structure that specifies the bottom coordinate of the inner rectangle for rectangular gradients, where (0.0,0.0) is the upper-left corner of the inner rectangle. This value MUST be greater than or equal to 0.0 and less than or equal to 1.0. If type equals 0x00000000, this value MUST equal 0.0.