[cairo.types.Status.PatternTypeMismatch] if the pattern is not a surface pattern.
Pattern.getSurface
cairo.types.Status getSurface(cairo.surface.Surface surface)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 | return value for surface of pattern, or null |
Returns
[cairo.types.Status.Success], or