meshPatternGetCornerColorRgba

fncairo.types.Status meshPatternGetCornerColorRgba(cairo.pattern.Pattern pattern, uint patchNum, uint cornerNum, out double red, out double green, out double blue, out double alpha)

Gets the color information in corner corner_num of patch patch_num for a mesh pattern.

patch_num can range from 0 to n-1 where n is the number returned by [cairo.global.meshPatternGetPatchCount].

Valid values for corner_num are from 0 to 3 and identify the corners as explained in [cairo.global.patternCreateMesh].

Note that the color and alpha values are not premultiplied.

Parameters

patterna #cairo_pattern_t
patchNumthe patch number to return data for
cornerNumthe corner number to return data for
redreturn value for red component of color, or null
greenreturn value for green component of color, or null
bluereturn value for blue component of color, or null
alphareturn value for alpha component of color, or null

Returns

[cairo.types.Status.Success], or [cairo.types.Status.InvalidIndex]

if patch_num or corner_num is not valid for pattern. If pattern is not a mesh pattern, [cairo.types.Status.PatternTypeMismatch] is returned.