Name
cpattern:GetColorStopCount -- get color stop count
Synopsis
status, count = cpattern:GetColorStopCount()
Function
Gets the number of color stops specified in the given gradient pattern.

This function returns #CAIRO_STATUS_SUCCESS, or #CAIRO_STATUS_PATTERN_TYPE_MISMATCH if the pattern is not a gradient pattern.

Inputs
none

Results
status
status code (see above)
count
number of color stops

Show TOC