The SpreadMethod class provides values for the spreadMethod parameter in the beginGradientFill() and lineGradientStyle() methods of the Graphics class.

The following example shows the same gradient fill using various spread methods:

Variables

@:value(cast 0)@:impl@:enuminlineread onlyPAD:SpreadMethod = 0

Specifies that the gradient use the pad spread method.

@:value(cast 1)@:impl@:enuminlineread onlyREFLECT:SpreadMethod = 1

Specifies that the gradient use the reflect spread method.

@:value(cast 2)@:impl@:enuminlineread onlyREPEAT:SpreadMethod = 2

Specifies that the gradient use the repeat spread method.