ExtCreateRegion

  HRGN ExtCreateRegion(lpXform, nCount, lpRgnData)    
  LPXFORM lpXform;    
  DWORD nCount;    
  LPRGNDATA lpRgnData;    

The ExtCreateRegion function creates a region from the region data given by the lpRgnData parameter. lpXform, if given, defines the region transformation.

Parameters

lpXform

This is a pointer to a XFORM structure which defines the transform to be performed on the region data. If NULL, it is an identity transform.

nCount

Specifies the number of bytes pointed to by lpRgnData.

lpRgnData

Points to the buffer that contains the region data.

Return Value

The return value identifies a new region if the function is successful. Otherwise, it is NULL.

Comments

This call is used in conjunction with the GetRegionData call. Use GetRegionData to fill in the RGNDATA structure. Use ExtCreateRegion to recreate the region.

See Also

GetRegionData