25 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 (15)
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\FlatButtonDarkModeRenderer.cs (1)
112
using var path = new
GraphicsPath
();
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ModernButtonDarkModeRenderer.cs (1)
227
GraphicsPath path =
new
();
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\PopupButtonDarkModeRenderer.cs (1)
201
GraphicsPath path =
new
();
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\SystemButtonDarkModeRenderer.cs (3)
225
GraphicsPath path =
new
();
264
GraphicsPath path =
new
();
314
GraphicsPath path =
new
();
System\Windows\Forms\Controls\ComboBox\ComboBox.ModernComboAdapter.cs (1)
439
GraphicsPath path =
new
();
System\Windows\Forms\Controls\GroupBox\GroupBox.Modern.cs (1)
489
GraphicsPath path =
new
();
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
2746
using GraphicsPath roundedBodyPath =
new
();
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
1126
using GraphicsPath bodyPath =
new
();
System\Windows\Forms\ParentBackgroundRenderer.cs (1)
81
using GraphicsPath outline =
new
();
System\Windows\Forms\Rendering\Animation\AnimatedFocusIndicatorRenderer.cs (1)
114
using GraphicsPath focusPath =
new
();
System\Windows\Forms\Rendering\Button\PopupButtonKeyCapRenderer.cs (1)
612
GraphicsPath path =
new
();
System\Windows\Forms\Rendering\CheckBox\AnimatedCheckGlyphRenderer.cs (1)
246
GraphicsPath path =
new
();
System\Windows\Forms\Rendering\CheckBox\AnimatedToggleSwitchRenderer.cs (1)
245
using GraphicsPath path =
new
();
86 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 (52)
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\FlatButtonDarkModeRenderer.cs (1)
112
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\ModernButtonDarkModeRenderer.cs (9)
107
using
GraphicsPath
borderPath = CreateRingPath(
118
using
GraphicsPath
bodyPath = CreateRoundedPath(pathBounds, radius);
153
using
GraphicsPath
gapPath = CreateRingPath(
162
using
GraphicsPath
ringPath = CreateRingPath(
225
private static
GraphicsPath
CreateRoundedPath(RectangleF bounds, float radius)
227
GraphicsPath
path = new();
233
private static
GraphicsPath
CreateRingPath(
238
GraphicsPath
path = CreateRoundedPath(outerBounds, outerRadius);
241
using
GraphicsPath
innerPath = CreateRoundedPath(innerBounds, innerRadius);
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\PopupButtonDarkModeRenderer.cs (4)
42
using
GraphicsPath
bodyPath = CreateRoundedPath(bodyBounds);
127
using
GraphicsPath
borderClip = CreateRoundedPath(bounds);
199
private
GraphicsPath
CreateRoundedPath(Rectangle bounds)
201
GraphicsPath
path = new();
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\SystemButtonDarkModeRenderer.cs (12)
49
using
GraphicsPath
fillPath = CreateRoundedPath(pathBounds, FocusIndicatorCornerRadius);
79
using
GraphicsPath
focusPath = CreateRingPath(
161
using
GraphicsPath
borderPath = CreateRoundedPath(
223
private static
GraphicsPath
GetTopLeftSegmentPath(Rectangle bounds, int radius)
225
GraphicsPath
path = new();
262
private static
GraphicsPath
GetBottomRightSegmentPath(Rectangle bounds, int radius)
264
GraphicsPath
path = new();
312
private static
GraphicsPath
CreateRoundedPath(RectangleF bounds, float radius)
314
GraphicsPath
path = new();
320
private static
GraphicsPath
CreateRingPath(
325
GraphicsPath
path = CreateRoundedPath(outerBounds, outerRadius);
328
using
GraphicsPath
innerPath = CreateRoundedPath(innerBounds, innerRadius);
System\Windows\Forms\Controls\ComboBox\ComboBox.ModernComboAdapter.cs (4)
368
using
GraphicsPath
path = CreateFieldPath(
392
using
GraphicsPath
path = CreateFieldPath(
435
private static
GraphicsPath
CreateFieldPath(
439
GraphicsPath
path = new();
System\Windows\Forms\Controls\GroupBox\GroupBox.Modern.cs (4)
346
using
GraphicsPath
path = CreateModernFramePath(bounds);
471
using
GraphicsPath
path = CreateModernFramePath(bounds);
487
private
GraphicsPath
CreateModernFramePath(Rectangle bounds)
489
GraphicsPath
path = new();
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
2746
using
GraphicsPath
roundedBodyPath = new();
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
1126
using
GraphicsPath
bodyPath = new();
System\Windows\Forms\ParentBackgroundRenderer.cs (1)
81
using
GraphicsPath
outline = new();
System\Windows\Forms\Rendering\Animation\AnimatedFocusIndicatorRenderer.cs (1)
114
using
GraphicsPath
focusPath = new();
System\Windows\Forms\Rendering\Button\PopupButtonKeyCapRenderer.cs (9)
168
using (
GraphicsPath
outerPath = CreateRoundedPath(outer, metrics.CornerRadius + 1f))
174
using
GraphicsPath
innerPath = CreateRoundedPath(inner, metrics.CornerRadius);
182
using
GraphicsPath
bodyPath = CreateRoundedPath(metrics.KeyRect, metrics.CornerRadius);
201
using
GraphicsPath
bowlPath = CreateRoundedPath(bowl, metrics.BowlRadius);
281
using
GraphicsPath
borderPath = CreateRoundedPath(
302
using
GraphicsPath
focusPath = CreateRoundedPath(
423
using
GraphicsPath
clipPath = CreateRoundedPath(
610
private static
GraphicsPath
CreateRoundedPath(Rectangle rect, float radius)
612
GraphicsPath
path = new();
System\Windows\Forms\Rendering\CheckBox\AnimatedCheckGlyphRenderer.cs (3)
135
using
GraphicsPath
path = CreateBoxPath(bounds, flatStyle);
244
private static
GraphicsPath
CreateBoxPath(Rectangle bounds, FlatStyle flatStyle)
246
GraphicsPath
path = new();
System\Windows\Forms\Rendering\CheckBox\AnimatedToggleSwitchRenderer.cs (1)
245
using
GraphicsPath
path = new();