CGpGraphicsPath.Resetmethod
Empties the path and sets the fill mode to **FillModeAlternate**.
Syntax
FUNCTION Reset () AS GpStatus
Return value
If the function succeeds, it returns StatusOk, which is an element of the GpStatus enumeration.
If the function fails, it returns one of the other elements of the GpStatus enumeration.
Description
Empties the path and sets the fill mode to FillModeAlternate.
Example
' ======================================================================================== ' This example adds shapes to a path, resets it, and adds a new shape. ' ======================================================================================== SUB Example_ResetPath (BYVAL hdc AS HDC)
' // Create a graphics object from the window device context DIM graphics AS CGpGraphics = hdc ' // Set the scale transform graphics.ScaleTransformForDpi
' // Create path and add initial shape DIM path AS CGpGraphicsPath path.AddRectangle(100, 80, 150, 100)
' // Reset the path path.Reset
' // Add new shape after reset path.AddEllipse(120, 100, 100, 60)
' // Create pen and draw path DIM pen AS CGpPen = CGpPen(ARGB_DARKSLATEBLUE, 2.0, UnitWorld) graphics.DrawPath(@pen, @path)
END SUB ' ========================================================================================
Reference
- Include file
CGpPath.inc - Defined in AfxNova/CGpPath.inc:69
- Documented in Graphics/GdiPlus Classes/CGpGraphics Classes.md
- Topic: CGpGraphics Class