Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

LinearGradientMode enumeration

Applies to: desktop apps only

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

Syntax

typedef enum  {
  LinearGradientModeHorizontal         = 0,
  LinearGradientModeVertical           = 1,
  LinearGradientModeForwardDiagonal    = 2,
  LinearGradientModeBackwardDiagonal   = 3 
} LinearGradientMode;

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

Minimum supported client

Windows XP, Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Product

GDI+ 1.0

Header

Gdiplusenums.h (include Gdiplus.h)

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Additions

Show:
© 2015 Microsoft