2.2.4.15.5 Gradient_AddValue

The Gradient_AddValue message adds a value to the ramp. The position is interpreted differently depending on the orientation of the gradient and offset based on the relative value of the value.


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

_size

_msgid

_idObjectSubject

flValue

flPosition

relative

_size (4 bytes): An unsigned 32-bit integer. The total message size, in bytes.

_msgid (4 bytes): A signed 32-bit integer. The message ID that is unique to the specific target. The _msgid value is 0x00000004 for this message.

_idObjectSubject (4 bytes): An unsigned 32-bit integer. The ID of the target object.

flValue (4 bytes): A single-precision 32-bit number. The value of the gradient stop.

flPosition (4 bytes): A single-precision 32-bit number. The position along the gradient ramp.

relative (4 bytes): A signed 32-bit integer. The relative space of the position value. Possible values are described in the following table.

Value

Description

0

The visual's logical rectangle min.

1

The visual's logical rectangle max.

2

The mesh's min extent.

3

The mesh's max extent.

4

Global space.