public void SymbolizePaths(Graphics g, IEnumerable <GraphicsPath> paths) { foreach (var graphicsPath in paths) { var clonedPattern = (GraphicsPath)Pattern.Clone(); var warpedPath = WarpPathToPath.Warp(graphicsPath, clonedPattern, true, 0f); if (warpedPath == null) { continue; } if (Fill != null) { g.FillPath(Fill, warpedPath); } if (Line != null) { g.DrawPath(Line, warpedPath); } } }
protected override void OnRenderInternal(Map map, LineString linestring, Graphics g) { var clonedPattern = (GraphicsPath)Pattern.Clone(); var graphicsPath = WarpPathToPath.Warp(LineStringToPath(linestring, map), clonedPattern, true, _interval); if (graphicsPath == null) { return; } // Fill? if (Fill != null) { g.FillPath(Fill, graphicsPath); } // Outline if (Line != null) { g.DrawPath(Line, graphicsPath); } }