Windowing and clipping are techniques used in computer graphics to select and display portions of an image or drawing. Windowing refers to selecting a region or "window" to view. The viewport defines the area on the display device where the window will be mapped. Clipping determines which parts of an image or drawing are visible within the window by dividing elements into visible and invisible portions. Common clipping techniques include point, line, polygon and curve clipping. The Cohen-Sutherland and Liang-Barsky algorithms are used for line clipping, and Sutherland-Hodgeman for polygon clipping. Midpoint subdivision is another line clipping method.