GdipClearPathMarkersfunction
Clears the markers from this path.
Syntax
FUNCTION GdipClearPathMarkers (BYVAL path AS GpPath PTR) AS GpStatus
Parameters
| Name | Description | |
|---|---|---|
path | [in] Pointer to the GraphicsPath object. |
Description
Clears the markers from the path.
Example
' ======================================================================================== ' This example sets a marker in a path and then clears it using GdipClearPathMarkers. ' ======================================================================================== SUB Example_ClearMarkers (BYVAL hdc AS HDC)
DIM hStatus AS LONG
' // Create a graphics object from the device context DIM graphics AS GpGraphics PTR hStatus = GdipCreateFromHDC(hdc, @graphics)
' // Get the DPI scaling ratios DIM dpiX AS SINGLE hStatus = GdipGetDpiX(graphics, @dpiX) DIM rxRatio AS SINGLE = dpiX / 96 DIM dpiY AS SINGLE hStatus = GdipGetDpiY(graphics, @dpiY) Dim ryRatio AS SINGLE = dpiY / 96 ' // Set the scale transform hStatus = GdipScaleWorldTransform(graphics, rxRatio, ryRatio, MatrixOrderPrepend)
' // Create GraphicsPath DIM path AS GpPath PTR hStatus = GdipCreatePath(FillModeAlternate, @path)
' // Add some shapes hStatus = GdipAddPathRectangle(path, 50, 50, 100, 60) hStatus = GdipSetPathMarker(path) ' Set a marker after the rectangle hStatus = GdipAddPathEllipse(path, 200, 50, 100, 60)
' // Clear all markers hStatus = GdipClearPathMarkers(path)
' // Create pen DIM pen AS GpPen PTR hStatus = GdipCreatePen1(ARGB_DARKBLUE, 2, UnitWorld, @pen)
' // Draw path hStatus = GdipDrawPath(graphics, pen, path)
' // Cleanup IF pen THEN GdipDeleteBrush(pen) IF path THEN GdipDeletePath(path) IF graphics THEN GdipDeleteGraphics(graphics)
END SUB ' ========================================================================================
Reference
- Defined in AfxNova/AfxGdiPlus.bi:2001
- Documented in Graphics/GdiPlus Flat Api/GdiPlusGraphicsPath.md
- Topic: GraphicsPath Functions