ccontext:PopGroupToSource()
The behavior of this function is equivalent to the sequence of operations:
group = cr:PopGroup() cr:SetSource(group) group:Free() |
but is more convenient as their is no need for a variable to store the short-lived handle to the pattern.
The ccontext:PopGroup() function calls ccontext:Restore(), (balancing a call to ccontext:Save() by the push group function), so that any changes to the graphics state will not be visible outside the group.