# Path user defined functions Reference

Below is a complete list of the user defined functions available in AutoIt. Click on a user defined function name for a detailed description.

When using them you need to add a #include <WinAPIGdi.au3>.

User Defined Function | Description
--- | ---
_WinAPI_AbortPath | Closes and discards any paths in the specified device context
_WinAPI_BeginPath | Opens a path bracket in the specified device context
_WinAPI_CloseFigure | Closes an open figure in a path
_WinAPI_EndPath | Closes a path bracket and selects the path defined by the bracket into the specified device context
_WinAPI_FillPath | Closes any open figures in the current path and fills the path's interior by using the current brush
_WinAPI_FlattenPath | Transforms any curves in the path that is selected into the current DC, turning each curve into a sequence of lines
_WinAPI_PathToRegion | Creates a region from the path that is selected into the specified device context
_WinAPI_StrokeAndFillPath | Closes any open figures in a path, strokes the outline of the path, and fills its interior
_WinAPI_StrokePath | Renders the specified path by using the current pen
_WinAPI_WidenPath | Redefines the current path as the area that would be painted if the path were stroked