Skip to content

Latest commit

 

History

History
105 lines (72 loc) · 2.96 KB

nf-wingdi-createellipticrgn.md

File metadata and controls

105 lines (72 loc) · 2.96 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:wingdi.CreateEllipticRgn
CreateEllipticRgn function (wingdi.h)
The CreateEllipticRgn function creates an elliptical region.
CreateEllipticRgn
CreateEllipticRgn function [Windows GDI]
_win32_CreateEllipticRgn
gdi.createellipticrgn
wingdi/CreateEllipticRgn
gdi\createellipticrgn.htm
gdi
b4e9b210-8e22-42db-bb6e-65f1fb870eff
12/05/2018
CreateEllipticRgn, CreateEllipticRgn function [Windows GDI], _win32_CreateEllipticRgn, gdi.createellipticrgn, wingdi/CreateEllipticRgn
wingdi.h
Windows.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
Gdi32.lib
Gdi32.dll
Windows
19H1
CreateEllipticRgn
wingdi/CreateEllipticRgn
c++
APIRef
kbSyntax
DllExport
gdi32.dll
Ext-MS-Win-GDI-Internal-Desktop-L1-1-0.dll
GDI32Full.dll
CreateEllipticRgn

CreateEllipticRgn function

-description

The CreateEllipticRgn function creates an elliptical region.

-parameters

-param x1 [in]

Specifies the x-coordinate in logical units, of the upper-left corner of the bounding rectangle of the ellipse.

-param y1 [in]

Specifies the y-coordinate in logical units, of the upper-left corner of the bounding rectangle of the ellipse.

-param x2 [in]

Specifies the x-coordinate in logical units, of the lower-right corner of the bounding rectangle of the ellipse.

-param y2 [in]

Specifies the y-coordinate in logical units, of the lower-right corner of the bounding rectangle of the ellipse.

-returns

If the function succeeds, the return value is the handle to the region.

If the function fails, the return value is NULL.

-remarks

When you no longer need the HRGN object, call the DeleteObject function to delete it.

A bounding rectangle defines the size, shape, and orientation of the region: The long sides of the rectangle define the length of the ellipse's major axis; the short sides define the length of the ellipse's minor axis; and the center of the rectangle defines the intersection of the major and minor axes.

-see-also

CreateEllipticRegnIndirect

DeleteObject

Region Functions

Regions Overview

SelectObject