public void StrokePath(bool close) { if (CurrentPath == null) { return; } CurrentPath.SetStroked(); if (close) { CurrentSubpath?.CloseSubpath(); } ClosePath(); }
public void FillPath(FillingRule fillingRule, bool close) { if (CurrentPath == null) { return; } CurrentPath.SetFilled(fillingRule); if (close) { CurrentSubpath?.CloseSubpath(); } ClosePath(); }
public PdfPoint?CloseSubpath() { if (CurrentSubpath == null) { return(null); } PdfPoint point; if (CurrentSubpath.Commands[0] is Move move) { point = move.Location; } else { throw new ArgumentException("CloseSubpath(): first command not Move."); } CurrentSubpath.CloseSubpath(); AddCurrentSubpath(); return(point); }