Install a transparent Clip region in the layer. All subsequent graphics call to the rastport of the layer will be clipped to that region. None of the system functions will free the ClipRegion for you, so you will have to call InstallClipRegion(l, NULL) before closing a window or deleting a layer.