Skip to content

Latest commit

 

History

History
133 lines (84 loc) · 4.42 KB

nf-gdipluspath-graphicspath-addellipse(constrect_).md

File metadata and controls

133 lines (84 loc) · 4.42 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 req.product ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:gdipluspath.GraphicsPath.AddEllipse(constRect&)
GraphicsPath::AddEllipse(IN const Rect &) (gdipluspath.h)
The GraphicsPath::AddEllipse method adds an ellipse to this path. (overload 4/4)
AddEllipse
AddEllipse method [GDI+]
AddEllipse method [GDI+]
GraphicsPath class
GraphicsPath class [GDI+]
AddEllipse method
GraphicsPath.AddEllipse
GraphicsPath.AddEllipse(IN const Rect &)
GraphicsPath.AddEllipse(const Rect&)
GraphicsPath::AddEllipse
GraphicsPath::AddEllipse(IN const Rect &)
_gdiplus_CLASS_GraphicsPath_AddEllipse_Rect_rect_
gdiplus._gdiplus_CLASS_GraphicsPath_AddEllipse_Rect_rect_
gdiplus\_gdiplus_CLASS_GraphicsPath_AddEllipse_Rect_rect_.htm
gdiplus
VS|gdicpp|~\gdiplus\gdiplusreference\classes\graphicspathclass\graphicspathmethods\graphicspathaddellipsemethods\addellipse.htm
12/05/2018
AddEllipse, AddEllipse method [GDI+], AddEllipse method [GDI+],GraphicsPath class, GraphicsPath class [GDI+],AddEllipse method, GraphicsPath.AddEllipse, GraphicsPath.AddEllipse(IN const Rect &), GraphicsPath.AddEllipse(const Rect&), GraphicsPath::AddEllipse, GraphicsPath::AddEllipse(IN const Rect &), _gdiplus_CLASS_GraphicsPath_AddEllipse_Rect_rect_, gdiplus._gdiplus_CLASS_GraphicsPath_AddEllipse_Rect_rect_
gdipluspath.h
Gdiplus.h
Windows
Windows XP, Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
Gdiplus.lib
Gdiplus.dll
Windows
GDI+ 1.0
19H1
GraphicsPath::AddEllipse
gdipluspath/GraphicsPath::AddEllipse
c++
APIRef
kbSyntax
COM
Gdiplus.dll
GraphicsPath.AddEllipse

GraphicsPath::AddEllipse(IN const Rect &)

-description

The GraphicsPath::AddEllipse method adds an ellipse to this path.

-parameters

-param rect [in, ref]

Type: const Rect

Reference to a rectangle that bounds the ellipse.

-returns

Type: Status

If the method succeeds, it returns Ok, which is an element of the Status enumeration.

If the method fails, it returns one of the other elements of the Status enumeration.

-remarks

A GraphicsPath object stores an ellipse as a sequence of four connected Bézier splines. The GraphicsPath object does not store the upper-left corner, width, and height of the ellipse's bounding rectangle.

Examples

The following example creates a GraphicsPath object path, adds an ellipse to path, and then draws path.

VOID Example_AddEllipse(HDC hdc)
{
   Graphics graphics(hdc); 
   Rect rect(20, 20, 200, 100);

   GraphicsPath path;
   path.AddEllipse(rect);

   // Draw the path.
   Pen pen(Color(255, 255, 0, 0));
   graphics.DrawPath(&pen, &path);
}

-see-also

AddArc Methods

AddEllipse Methods

Clipping with a Region

Constructing and Drawing Paths

Creating a Path Gradient

Ellipses and Arcs

GraphicsPath

Paths

Rect