Pattern.getColorStopCount

cairo.types.Status getColorStopCount(out int count)

Gets the number of color stops specified in the given gradient pattern.

Parameters

countreturn value for the number of color stops, or null

Returns

[cairo.types.Status.Success], or

[cairo.types.Status.PatternTypeMismatch] if pattern is not a gradient pattern.