Name
ccontext:PopGroup -- pop group
Synopsis
pat = ccontext:PopGroup()
Function
Terminates the redirection begun by a call to ccontext:PushGroup() or ccontext:PushGroupWithContent() and returns a new pattern containing the results of all drawing operations performed to the group.

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.

This function returns a newly created (surface) pattern containing the results of all drawing operations performed to the group. The caller owns the returned object and should call cpattern:Free() when finished with it.

Inputs
none

Results
pat
a newly created pattern

Show TOC