Pattern.getSurface

cairo.types.Status getSurface(cairo.surface.Surface surface) nothrow

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

surfacereturn value for surface of pattern, or null

Returns

cairo.types.Status.Success, or

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