导航:  GdiPlus Classes > Enumerations >

LinearGradientMode

上一页返回章节概述下一页

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

 

C++ Syntax

 

typedef enum {

LinearGradientModeHorizontal = 0,

LinearGradientModeVertical = 1,

LinearGradientModeForwardDiagonal = 2,

LinearGradientModeBackwardDiagonal = 3

} LinearGradientMode;

 

FreeBASIC 语法

 

enum

LinearGradientModeHorizontal         = 0

LinearGradientModeVertical           = 1

LinearGradientModeForwardDiagonal    = 2

LinearGradientModeBackwardDiagonal   = 3

end enum

 

常数

 

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.