Clipping is a technique that identifies parts of an image that are inside or outside a defined clipping region or window. There are different types of clipping including point, line, polygon, curve, and text clipping. The Cohen-Sutherland algorithm is commonly used for line clipping. It assigns 4-bit codes to line endpoints to determine if they are fully inside, outside, or intersect the clipping window boundary. Intersecting line segments are then subdivided and clipped. Midpoint subdivision is another algorithm that divides partially visible lines at their midpoint into shorter segments.