LinearGradientMode enumeration (gdiplusenums.h)

The LinearGradientMode enumeration specifies the direction in which the change of color occurs for a linear gradient brush.

Syntax

typedef enum LinearGradientMode {
  LinearGradientModeHorizontal,
  LinearGradientModeVertical,
  LinearGradientModeForwardDiagonal,
  LinearGradientModeBackwardDiagonal
} ;

Constants

 
LinearGradientModeHorizontal
Specifies the color to change in a horizontal direction from the left of the display to the right of the display.
LinearGradientModeVertical
Specifies the color to change in a vertical direction from the top of the display to the bottom of the display.
LinearGradientModeForwardDiagonal
Specifies the color to change in a forward diagonal direction from the upper-left corner to the lower-right corner of the display.
LinearGradientModeBackwardDiagonal
Specifies the color to change in a backward diagonal direction from the upper-right corner to the lower-left corner of the display.

Requirements

Requirement Value
Minimum supported client Windows XP, Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Header gdiplusenums.h (include Gdiplus.h)