select_clipping_region


int select_clipping_region(handle device,
                           handle region)

This function selects a region as the current clipping region.

Parameters

handle device

The handle of the device context.

handle region

The handle of the region to become the clipping region. If null is specified, the clipping region of the device context is removed.

Return

int

The new clipping region's complexity (see enumeration region_type).

Notes

Device coordinates are assumed for the source region.

A copy of the given region is taken. The specified region may be subsequently deleted.