15 instantiations of GraphicsPath
System.Drawing.Common (10)
System\Drawing\Drawing2D\GraphicsPath.cs (8)
15
/// <inheritdoc cref="
GraphicsPath
(Point[], byte[], FillMode)"/>
18
/// <inheritdoc cref="
GraphicsPath
(Point[], byte[], FillMode)"/>
26
/// <inheritdoc cref="
GraphicsPath
(Point[], byte[], FillMode)"/>
29
/// <inheritdoc cref="
GraphicsPath
(Point[], byte[], FillMode)"/>
35
/// <inheritdoc cref="
GraphicsPath
(Point[], byte[], FillMode)"/>
57
/// <inheritdoc cref="
GraphicsPath
(Point[], byte[], FillMode)"/>
71
/// <inheritdoc cref="
GraphicsPath
(Point[], byte[], FillMode)"/>
98
return new
GraphicsPath
(path);
System\Drawing\Graphics.cs (2)
733
using GraphicsPath path =
new
();
1207
using GraphicsPath path =
new
();
System.Windows.Forms (5)
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\FlatButtonDarkModeRenderer.cs (1)
101
using var path = new
GraphicsPath
();
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\PopupButtonDarkModeRenderer.cs (1)
226
GraphicsPath path =
new
();
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\SystemButtonDarkModeRenderer.cs (3)
198
GraphicsPath path =
new
();
237
GraphicsPath path =
new
();
276
GraphicsPath path =
new
();
50 references to GraphicsPath
System.Drawing (1)
System.Drawing.cs (1)
33
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Drawing2D.
GraphicsPath
))]
System.Drawing.Common (33)
System\Drawing\Drawing2D\CustomLineCap.cs (6)
15
public CustomLineCap(
GraphicsPath
? fillPath,
GraphicsPath
? strokePath) : this(fillPath, strokePath, LineCap.Flat) { }
17
public CustomLineCap(
GraphicsPath
? fillPath,
GraphicsPath
? strokePath, LineCap baseCap) : this(fillPath, strokePath, baseCap, 0) { }
19
public CustomLineCap(
GraphicsPath
? fillPath,
GraphicsPath
? strokePath, LineCap baseCap, float baseInset)
System\Drawing\Drawing2D\GraphicsPath.cs (5)
61
/// Initializes a new instance of the <see cref='
GraphicsPath
'/> class.
66
/// A <see cref="Drawing2D.FillMode"/> enumeration that specifies how the interiors of shapes in this <see cref="
GraphicsPath
"/>
312
/// Appends a series of connected line segments to the end of this <see cref="
GraphicsPath
"/>.
769
public void AddPath(
GraphicsPath
addingPath, bool connect)
880
/// Applies a warp transform, defined by a rectangle and a parallelogram, to this <see cref="
GraphicsPath
"/>.
System\Drawing\Drawing2D\GraphicsPathIterator.cs (6)
11
public GraphicsPathIterator(
GraphicsPath
? path)
71
public int NextSubpath(
GraphicsPath
path, out bool isClosed)
106
public int NextMarker(
GraphicsPath
path)
190
/// Copies the <see cref="
GraphicsPath
.PathPoints"/> property and <see cref="
GraphicsPath
.PathTypes"/> property data
191
/// of the associated <see cref="
GraphicsPath
"/>.
System\Drawing\Drawing2D\PathGradientBrush.cs (2)
9
/// Encapsulates a <see cref="Brush"/> object that fills the interior of a <see cref="
GraphicsPath
"/> object with a gradient.
97
public PathGradientBrush(
GraphicsPath
path)
System\Drawing\Graphics.cs (7)
535
public void SetClip(
GraphicsPath
path) => SetClip(path, Drawing2D.CombineMode.Replace);
537
public void SetClip(
GraphicsPath
path, Drawing2D.CombineMode combineMode)
733
using
GraphicsPath
path = new();
901
/// Draws the lines and curves defined by a <see cref='
GraphicsPath
'/>.
903
public void DrawPath(Pen pen,
GraphicsPath
path)
1207
using
GraphicsPath
path = new();
2848
public void FillPath(Brush brush,
GraphicsPath
path)
System\Drawing\PointerExtensions.cs (1)
22
public static GpPath* Pointer(this Drawing2D.
GraphicsPath
? path) => path is null ? null : path._nativePath;
System\Drawing\Region.cs (6)
33
public Region(
GraphicsPath
path)
114
public void Intersect(
GraphicsPath
path)
133
public void Union(
GraphicsPath
path)
152
public void Xor(
GraphicsPath
path)
171
public void Exclude(
GraphicsPath
path)
190
public void Complement(
GraphicsPath
path)
System.Windows.Forms (16)
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\FlatButtonDarkModeRenderer.cs (1)
101
using
var
path = new GraphicsPath();
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\IButtonRenderer.cs (1)
19
static void DrawButtonBorder(Graphics graphics,
GraphicsPath
path, Color borderColor, int borderWidth)
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\PopupButtonDarkModeRenderer.cs (5)
49
using
GraphicsPath
path = CreateRoundedRectanglePath(paddedBounds, ButtonCornerRadius);
83
using
GraphicsPath
focusPath = CreateRoundedRectanglePath(focusRect, FocusCornerRadius);
134
using
GraphicsPath
path = CreateRoundedRectanglePath(bounds, ButtonCornerRadius);
224
private static
GraphicsPath
CreateRoundedRectanglePath(Rectangle bounds, int radius)
226
GraphicsPath
path = new();
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\SystemButtonDarkModeRenderer.cs (9)
38
using
GraphicsPath
fillPath = CreateRoundedRectanglePath(fillBounds, CornerRadius - DarkBorderGapThickness);
61
using
GraphicsPath
focusPath = CreateRoundedRectanglePath(focusRect, FocusIndicatorCornerRadius);
136
using
GraphicsPath
borderPath = CreateRoundedRectanglePath(borderRect, CornerRadius);
196
private static
GraphicsPath
GetTopLeftSegmentPath(Rectangle bounds, int radius)
198
GraphicsPath
path = new();
235
private static
GraphicsPath
GetBottomRightSegmentPath(Rectangle bounds, int radius)
237
GraphicsPath
path = new();
274
private static
GraphicsPath
CreateRoundedRectanglePath(Rectangle bounds, int radius)
276
GraphicsPath
path = new();