When drawing graphics on a surface, portions of the surface can be clipped. The clipping rectangle can be changed in realtime to exclude parts of the surface for drawing. Each surface has its own clipping rectangle.
In the next sample a portion of a surface is blitted to another surface with a clipped rectangle. The second surface contains a background image.