CGpGraphicsPath.SetFillModemethod
Sets the fill mode of this path.
Syntax
FUNCTION SetFillMode (BYVAL nFillmode AS FillMode) AS GpStatus
Parameters
| Name | Description | |
|---|---|---|
nFillmode | Element of the FillMode enumeration that specifies how to fill areas when the path intersects itself. |
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
Sets the fill mode of this path.
Example
' ======================================================================================== ' This example sets the fill mode of a GraphicsPath. ' ======================================================================================== SUB Example_SetPathFillMode (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 overlapping ellipses DIM path AS CGpGraphicsPath path.AddEllipse(100, 80, 150, 100) path.AddEllipse(130, 110, 150, 100)
' // Change fill mode to Winding path.SetFillMode(FillModeWinding)
' // Create brush and fill the path DIM brush AS CGpSolidBrush = ARGB_LIGHTSKYBLUE graphics.FillPath(@brush, @path)
END SUB ' ========================================================================================
Reference
- Include file
CGpPath.inc - Defined in AfxNova/CGpPath.inc:87
- Documented in Graphics/GdiPlus Classes/CGpGraphics Classes.md
- Topic: CGpGraphics Class