Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the parameters used to produce the gradient surface.
Syntax
HRESULT retVal = object.SetGradient(StartColor, EndColor, bHorizontal);
Parameters
StartColor
Type: DXSAMPLEStart color in DXSAMPLE format.
EndColor
Type: DXSAMPLEEnd color in DXSAMPLE format.
bHorizontal
Type: BOOLBOOL value that indicates the gradient direction. If TRUE, the gradient is horizontal; if FALSE, the gradient is vertical.
Remarks
The start color is on the left side of the image for horizontal gradients and on the top of the image for vertical gradients.