Pattern.getSurface

Gets the surface of a surface pattern. The reference returned in surface is owned by the pattern; the caller should call cairo.surface.Surface.reference if the surface is to be retained.

Parameters

surface cairo.surface.Surface

return value for surface of pattern, or null

Return Value

Type: cairo.types.Status

cairo.types.Status.Success, or cairo.types.Status.PatternTypeMismatch if the pattern is not a surface pattern.