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_reference() if the surface is to be retained. Since 1.4

class Pattern
getSurface

Parameters

surface Surface

return value for surface of pattern, or NULL

Return Value

CAIRO_STATUS_SUCCESS, or CAIRO_STATUS_PATTERN_TYPE_MISMATCH if the pattern is not a surface pattern.

Meta