Function Reference


_WinAPI_PathToRegion

Creates a region from the path that is selected into the specified device context

#include <WinAPIGdi.au3>
_WinAPI_PathToRegion ( $hDC )

Parameters

$hDC Handle to a device context that contains a closed path.

Return Value

Success: The handle to the region.
Failure: 0, call _WinAPI_GetLastError() to get extended error information.

Remarks

The device context identified by the $hDC parameter must contain a closed path.

After _WinAPI_PathToRegion() converts a path into a region, the system discards the closed path from the specified
device context.

See Also

Search PathToRegion in MSDN Library.