Enumeration

CGGradientDrawingOptions

Drawing locations for gradients.

Declaration

typedef enum CGGradientDrawingOptions : uint32_t {
    ...
} CGGradientDrawingOptions;

Topics

Constants

kCGGradientDrawsBeforeStartLocation

The fill should extend beyond the starting location. The color that extends beyond the starting point is the solid color defined by the CGGradientRef object to be at location 0.

kCGGradientDrawsAfterEndLocation

The fill should extend beyond the ending location. The color that extends beyond the ending point is the solid color defined by the CGGradientRef object to be at location 1.

See Also

Drawing Gradients and Shadings

CGContextDrawLinearGradient

Paints a gradient fill that varies along the line defined by the provided starting and ending points.

CGContextDrawRadialGradient

Paints a gradient fill that varies along the area defined by the provided starting and ending circles.

CGContextDrawShading

Fills the clipping path of a context with the specified shading.