Enum StrategyBasedLinearGradientBuilder.GradientStrategy
Specifies the predefined strategies
public enum StrategyBasedLinearGradientBuilder.GradientStrategy
Fields
TO_BOTTOM = 0
Gradient vector from the middle of the top side to the middle of the bottom side
TO_BOTTOM_LEFT = 1
Evaluates the gradient vector in such way that the first color would be painted at the top right corner, the last one - at the bottom left corner and the middle color line would pass through left corners
TO_BOTTOM_RIGHT = 2
Evaluates the gradient vector in such way that the first color would be painted at the top left corner, the last one - at the bottom right corner and the middle color line would pass through left corners
TO_LEFT = 3
Gradient vector from the middle of the right side to the middle of the left side
TO_RIGHT = 4
Gradient vector from the middle of the left side to the middle of the right side
TO_TOP = 5
Gradient vector from the middle of the bottom side to the middle of the top side
TO_TOP_LEFT = 6
Evaluates the gradient vector in such way that the first color would be painted at the bottom right corner, the last one - at the top left corner and the middle color line would pass through left corners
TO_TOP_RIGHT = 7
Evaluates the gradient vector in such way that the first color would be painted at the bottom left corner, the last one - at the top right corner and the middle color line would pass through left corners