cpattern:SetExtend(extend)
extend parameter can be set to one of the following constants:
#CAIRO_EXTEND_NONE#CAIRO_EXTEND_REPEAT#CAIRO_EXTEND_REFLECT#CAIRO_EXTEND_PAD
The default extend mode is #CAIRO_EXTEND_NONE for surface patterns
and #CAIRO_EXTEND_PAD for gradient patterns.