Here are the examples of the csharp api class System.Drawing.Drawing2D.GraphicsPath.CloseAllFigures() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
89 Examples
0
1. Example
Project: referencesource
Source File: ChartGraphics3D.cs
Source File: ChartGraphics3D.cs
internal void Draw3DLine( Matrix3D matrix, Color color, int width, ChartDashStyle sty/n ..... /n //View Source file for more details /n }
0
2. Example
Project: referencesource
Source File: GridTickMarks.cs
Source File: GridTickMarks.cs
private void DrawGrid( ChartGraphics graph, double current ) { // Common elements CommonElem/n ..... /n //View Source file for more details /n }
0
3. Example
Project: referencesource
Source File: GridTickMarks.cs
Source File: GridTickMarks.cs
internal void PaintCustom( ChartGraphics graph ) { // Common Elements CommonElements common /n ..... /n //View Source file for more details /n }
0
4. Example
Project: referencesource
Source File: Title.cs
Source File: Title.cs
internal static void DrawStringWithStyle( ChartGraphics chartGraph, string t/n ..... /n //View Source file for more details /n }
0
5. Example
Project: VisualPlus
Source File: VisualBorderRenderer.cs
Source File: VisualBorderRenderer.cs
public static GraphicsPath CreateBorderTypePath(Rectangle rectangle, int rounding, int thickness, ShapeType type) { Rectangle _borderRectangle = new Rectangle(rectangle.X, rectangle.Y, rectangle.Width - thickness, rectangle.Height - thickness); GraphicsPath _borderShape = new GraphicsPath(); switch (type) { case ShapeType.Rectangle: { _borderShape.AddRectangle(_borderRectangle); break; } case ShapeType.Rounded: { _borderShape.AddArc(rectangle.X, rectangle.Y, rounding, rounding, 180.0F, 90.0F); _borderShape.AddArc(rectangle.Right - rounding, rectangle.Y, rounding, rounding, 270.0F, 90.0F); _borderShape.AddArc(rectangle.Right - rounding, rectangle.Bottom - rounding, rounding, rounding, 0.0F, 90.0F); _borderShape.AddArc(rectangle.X, rectangle.Bottom - rounding, rounding, rounding, 90.0F, 90.0F); break; } default: { throw new ArgumentOutOfRangeException(nameof(type), type, null); } } _borderShape.CloseAllFigures(); return _borderShape; }
0
6. Example
Project: MaterialWinforms
Source File: MaterialToggle.cs
Source File: MaterialToggle.cs
protected override void OnResize(EventArgs e) { Height = 19; Width = 47; RoundedRectangle = new GraphicsPath(); int radius = 10; RoundedRectangle.AddArc(11, 4, radius - 1, radius, 180, 90); RoundedRectangle.AddArc(Width - 21, 4, radius - 1, radius, -90, 90); RoundedRectangle.AddArc(Width - 21, Height - 15, radius - 1, radius, 0, 90); RoundedRectangle.AddArc(11, Height - 15, radius - 1, radius, 90, 90); RoundedRectangle.CloseAllFigures(); Invalidate(); }
0
7. Example
Project: Launcher_Multigaming
Source File: Italk.cs
Source File: Italk.cs
public GraphicsPath Pill(Rectangle Rectangle, PillStyle PillStyle) { GraphicsPath functionReturnValue = default(GraphicsPath); functionReturnValue = new GraphicsPath(); if (PillStyle.Left) { functionReturnValue.AddArc(new Rectangle(Rectangle.X, Rectangle.Y, Rectangle.Height, Rectangle.Height), -270, 180); } else { functionReturnValue.AddLine(Rectangle.X, Rectangle.Y + Rectangle.Height, Rectangle.X, Rectangle.Y); } if (PillStyle.Right) { functionReturnValue.AddArc(new Rectangle(Rectangle.X + Rectangle.Width - Rectangle.Height, Rectangle.Y, Rectangle.Height, Rectangle.Height), -90, 180); } else { functionReturnValue.AddLine(Rectangle.X + Rectangle.Width, Rectangle.Y, Rectangle.X + Rectangle.Width, Rectangle.Y + Rectangle.Height); } functionReturnValue.CloseAllFigures(); return functionReturnValue; }
0
8. Example
Project: Launcher_Multigaming
Source File: Italk.cs
Source File: Italk.cs
protected override void OnResize(System.EventArgs e) { base.OnResize(e); if (_Multiline) { iTalkTB.Height = Height - 23; } else { Height = iTalkTB.Height + 23; } Shape = new GraphicsPath(); var _with1 = Shape; _with1.AddArc(0, 0, 10, 10, 180, 90); _with1.AddArc(Width - 11, 0, 10, 10, -90, 90); _with1.AddArc(Width - 11, Height - 11, 10, 10, 0, 90); _with1.AddArc(0, Height - 11, 10, 10, 90, 90); _with1.CloseAllFigures(); }
0
9. Example
Project: Launcher_Multigaming
Source File: Italk.cs
Source File: Italk.cs
protected override void OnResize(System.EventArgs e) { base.OnResize(e); if (_Multiline) { iTalkTB.Height = Height - 10; } else { Height = iTalkTB.Height + 10; } Shape = new GraphicsPath(); var _with1 = Shape; _with1.AddArc(0, 0, 10, 10, 180, 90); _with1.AddArc(Width - 11, 0, 10, 10, -90, 90); _with1.AddArc(Width - 11, Height - 11, 10, 10, 0, 90); _with1.AddArc(0, Height - 11, 10, 10, 90, 90); _with1.CloseAllFigures(); }
0
10. Example
Project: Launcher_Multigaming
Source File: Italk.cs
Source File: Italk.cs
protected override void OnResize(System.EventArgs e) { base.OnResize(e); Shape = new GraphicsPath(); var _Shape = Shape; _Shape.AddArc(0, 0, 10, 10, 180, 90); _Shape.AddArc(Width - 11, 0, 10, 10, -90, 90); _Shape.AddArc(Width - 11, Height - 11, 10, 10, 0, 90); _Shape.AddArc(0, Height - 11, 10, 10, 90, 90); _Shape.CloseAllFigures(); }
0
11. Example
Project: Launcher_Multigaming
Source File: Italk.cs
Source File: Italk.cs
protected override void OnResize(System.EventArgs e) { base.OnResize(e); Height = 28; Shape = new GraphicsPath(); Shape.AddArc(0, 0, 10, 10, 180, 90); Shape.AddArc(Width - 11, 0, 10, 10, -90, 90); Shape.AddArc(Width - 11, Height - 11, 10, 10, 0, 90); Shape.AddArc(0, Height - 11, 10, 10, 90, 90); Shape.CloseAllFigures(); }
0
12. Example
Project: Launcher_Multigaming
Source File: Italk.cs
Source File: Italk.cs
protected override void OnResize(System.EventArgs e) { base.OnResize(e); Shape = new GraphicsPath(); var _with1 = Shape; _with1.AddArc(0, 0, 10, 10, 180, 90); _with1.AddArc(Width - 11, 0, 10, 10, -90, 90); _with1.AddArc(Width - 11, Height - 11, 10, 10, 0, 90); _with1.AddArc(0, Height - 11, 10, 10, 90, 90); _with1.CloseAllFigures(); }
0
13. Example
Project: Launcher_Multigaming
Source File: MonoFlat.cs
Source File: MonoFlat.cs
protected override void OnResize(System.EventArgs e) { base.OnResize(e); if (_Multiline) { MonoFlatTB.Height = Height - 23; } else { Height = MonoFlatTB.Height + 23; } Shape = new GraphicsPath(); Shape.AddArc(0, 0, 10, 10, 180, 90); Shape.AddArc(Width - 11, 0, 10, 10, -90, 90); Shape.AddArc(Width - 11, Height - 11, 10, 10, 0, 90); Shape.AddArc(0, Height - 11, 10, 10, 90, 90); Shape.CloseAllFigures(); }
0
14. Example
Project: Launcher_Multigaming
Source File: MonoFlat.cs
Source File: MonoFlat.cs
protected override void OnResize(System.EventArgs e) { base.OnResize(e); Shape = new GraphicsPath(); Shape.AddArc(0, 0, 10, 10, 180, 90); Shape.AddArc(Width - 11, 0, 10, 10, -90, 90); Shape.AddArc(Width - 11, Height - 11, 10, 10, 0, 90); Shape.AddArc(0, Height - 11, 10, 10, 90, 90); Shape.CloseAllFigures(); }
0
15. Example
Project: Launcher_Multigaming
Source File: Italk.cs
Source File: Italk.cs
public GraphicsPath Pill(Rectangle Rectangle, PillStyle PillStyle) { GraphicsPath functionReturnValue = default(GraphicsPath); functionReturnValue = new GraphicsPath(); if (PillStyle.Left) { functionReturnValue.AddArc(new Rectangle(Rectangle.X, Rectangle.Y, Rectangle.Height, Rectangle.Height), -270, 180); } else { functionReturnValue.AddLine(Rectangle.X, Rectangle.Y + Rectangle.Height, Rectangle.X, Rectangle.Y); } if (PillStyle.Right) { functionReturnValue.AddArc(new Rectangle(Rectangle.X + Rectangle.Width - Rectangle.Height, Rectangle.Y, Rectangle.Height, Rectangle.Height), -90, 180); } else { functionReturnValue.AddLine(Rectangle.X + Rectangle.Width, Rectangle.Y, Rectangle.X + Rectangle.Width, Rectangle.Y + Rectangle.Height); } functionReturnValue.CloseAllFigures(); return functionReturnValue; }
0
16. Example
Project: Launcher_Multigaming
Source File: Italk.cs
Source File: Italk.cs
protected override void OnResize(System.EventArgs e) { base.OnResize(e); if (_Multiline) { iTalkTB.Height = Height - 23; } else { Height = iTalkTB.Height + 23; } Shape = new GraphicsPath(); var _with1 = Shape; _with1.AddArc(0, 0, 10, 10, 180, 90); _with1.AddArc(Width - 11, 0, 10, 10, -90, 90); _with1.AddArc(Width - 11, Height - 11, 10, 10, 0, 90); _with1.AddArc(0, Height - 11, 10, 10, 90, 90); _with1.CloseAllFigures(); }
0
17. Example
Project: Launcher_Multigaming
Source File: Italk.cs
Source File: Italk.cs
protected override void OnResize(System.EventArgs e) { base.OnResize(e); if (_Multiline) { iTalkTB.Height = Height - 10; } else { Height = iTalkTB.Height + 10; } Shape = new GraphicsPath(); var _with1 = Shape; _with1.AddArc(0, 0, 10, 10, 180, 90); _with1.AddArc(Width - 11, 0, 10, 10, -90, 90); _with1.AddArc(Width - 11, Height - 11, 10, 10, 0, 90); _with1.AddArc(0, Height - 11, 10, 10, 90, 90); _with1.CloseAllFigures(); }
0
18. Example
Project: Launcher_Multigaming
Source File: Italk.cs
Source File: Italk.cs
protected override void OnResize(System.EventArgs e) { base.OnResize(e); Shape = new GraphicsPath(); var _Shape = Shape; _Shape.AddArc(0, 0, 10, 10, 180, 90); _Shape.AddArc(Width - 11, 0, 10, 10, -90, 90); _Shape.AddArc(Width - 11, Height - 11, 10, 10, 0, 90); _Shape.AddArc(0, Height - 11, 10, 10, 90, 90); _Shape.CloseAllFigures(); }
0
19. Example
Project: Launcher_Multigaming
Source File: Italk.cs
Source File: Italk.cs
protected override void OnResize(System.EventArgs e) { base.OnResize(e); Height = 28; Shape = new GraphicsPath(); Shape.AddArc(0, 0, 10, 10, 180, 90); Shape.AddArc(Width - 11, 0, 10, 10, -90, 90); Shape.AddArc(Width - 11, Height - 11, 10, 10, 0, 90); Shape.AddArc(0, Height - 11, 10, 10, 90, 90); Shape.CloseAllFigures(); }
0
20. Example
Project: Launcher_Multigaming
Source File: Italk.cs
Source File: Italk.cs
protected override void OnResize(System.EventArgs e) { base.OnResize(e); Shape = new GraphicsPath(); var _with1 = Shape; _with1.AddArc(0, 0, 10, 10, 180, 90); _with1.AddArc(Width - 11, 0, 10, 10, -90, 90); _with1.AddArc(Width - 11, Height - 11, 10, 10, 0, 90); _with1.AddArc(0, Height - 11, 10, 10, 90, 90); _with1.CloseAllFigures(); }
0
21. Example
Project: Launcher_Multigaming
Source File: MonoFlat.cs
Source File: MonoFlat.cs
protected override void OnResize(System.EventArgs e) { base.OnResize(e); if (_Multiline) { MonoFlatTB.Height = Height - 23; } else { Height = MonoFlatTB.Height + 23; } Shape = new GraphicsPath(); Shape.AddArc(0, 0, 10, 10, 180, 90); Shape.AddArc(Width - 11, 0, 10, 10, -90, 90); Shape.AddArc(Width - 11, Height - 11, 10, 10, 0, 90); Shape.AddArc(0, Height - 11, 10, 10, 90, 90); Shape.CloseAllFigures(); }
0
22. Example
Project: Launcher_Multigaming
Source File: MonoFlat.cs
Source File: MonoFlat.cs
protected override void OnResize(System.EventArgs e) { base.OnResize(e); Shape = new GraphicsPath(); Shape.AddArc(0, 0, 10, 10, 180, 90); Shape.AddArc(Width - 11, 0, 10, 10, -90, 90); Shape.AddArc(Width - 11, Height - 11, 10, 10, 0, 90); Shape.AddArc(0, Height - 11, 10, 10, 90, 90); Shape.CloseAllFigures(); }
0
23. Example
Project: Launcher_Multigaming
Source File: Italk.cs
Source File: Italk.cs
public GraphicsPath Pill(Rectangle Rectangle, PillStyle PillStyle) { GraphicsPath functionReturnValue = default(GraphicsPath); functionReturnValue = new GraphicsPath(); if (PillStyle.Left) { functionReturnValue.AddArc(new Rectangle(Rectangle.X, Rectangle.Y, Rectangle.Height, Rectangle.Height), -270, 180); } else { functionReturnValue.AddLine(Rectangle.X, Rectangle.Y + Rectangle.Height, Rectangle.X, Rectangle.Y); } if (PillStyle.Right) { functionReturnValue.AddArc(new Rectangle(Rectangle.X + Rectangle.Width - Rectangle.Height, Rectangle.Y, Rectangle.Height, Rectangle.Height), -90, 180); } else { functionReturnValue.AddLine(Rectangle.X + Rectangle.Width, Rectangle.Y, Rectangle.X + Rectangle.Width, Rectangle.Y + Rectangle.Height); } functionReturnValue.CloseAllFigures(); return functionReturnValue; }
0
24. Example
Project: Launcher_Multigaming
Source File: Italk.cs
Source File: Italk.cs
protected override void OnResize(System.EventArgs e) { base.OnResize(e); if (_Multiline) { iTalkTB.Height = Height - 23; } else { Height = iTalkTB.Height + 23; } Shape = new GraphicsPath(); var _with1 = Shape; _with1.AddArc(0, 0, 10, 10, 180, 90); _with1.AddArc(Width - 11, 0, 10, 10, -90, 90); _with1.AddArc(Width - 11, Height - 11, 10, 10, 0, 90); _with1.AddArc(0, Height - 11, 10, 10, 90, 90); _with1.CloseAllFigures(); }
0
25. Example
Project: Launcher_Multigaming
Source File: Italk.cs
Source File: Italk.cs
protected override void OnResize(System.EventArgs e) { base.OnResize(e); if (_Multiline) { iTalkTB.Height = Height - 10; } else { Height = iTalkTB.Height + 10; } Shape = new GraphicsPath(); var _with1 = Shape; _with1.AddArc(0, 0, 10, 10, 180, 90); _with1.AddArc(Width - 11, 0, 10, 10, -90, 90); _with1.AddArc(Width - 11, Height - 11, 10, 10, 0, 90); _with1.AddArc(0, Height - 11, 10, 10, 90, 90); _with1.CloseAllFigures(); }
0
26. Example
Project: Launcher_Multigaming
Source File: Italk.cs
Source File: Italk.cs
protected override void OnResize(System.EventArgs e) { base.OnResize(e); Shape = new GraphicsPath(); var _Shape = Shape; _Shape.AddArc(0, 0, 10, 10, 180, 90); _Shape.AddArc(Width - 11, 0, 10, 10, -90, 90); _Shape.AddArc(Width - 11, Height - 11, 10, 10, 0, 90); _Shape.AddArc(0, Height - 11, 10, 10, 90, 90); _Shape.CloseAllFigures(); }
0
27. Example
Project: Launcher_Multigaming
Source File: Italk.cs
Source File: Italk.cs
protected override void OnResize(System.EventArgs e) { base.OnResize(e); Height = 28; Shape = new GraphicsPath(); Shape.AddArc(0, 0, 10, 10, 180, 90); Shape.AddArc(Width - 11, 0, 10, 10, -90, 90); Shape.AddArc(Width - 11, Height - 11, 10, 10, 0, 90); Shape.AddArc(0, Height - 11, 10, 10, 90, 90); Shape.CloseAllFigures(); }
0
28. Example
Project: Launcher_Multigaming
Source File: Italk.cs
Source File: Italk.cs
protected override void OnResize(System.EventArgs e) { base.OnResize(e); Shape = new GraphicsPath(); var _with1 = Shape; _with1.AddArc(0, 0, 10, 10, 180, 90); _with1.AddArc(Width - 11, 0, 10, 10, -90, 90); _with1.AddArc(Width - 11, Height - 11, 10, 10, 0, 90); _with1.AddArc(0, Height - 11, 10, 10, 90, 90); _with1.CloseAllFigures(); }
0
29. Example
Project: Launcher_Multigaming
Source File: MonoFlat.cs
Source File: MonoFlat.cs
protected override void OnResize(System.EventArgs e) { base.OnResize(e); if (_Multiline) { MonoFlatTB.Height = Height - 23; } else { Height = MonoFlatTB.Height + 23; } Shape = new GraphicsPath(); Shape.AddArc(0, 0, 10, 10, 180, 90); Shape.AddArc(Width - 11, 0, 10, 10, -90, 90); Shape.AddArc(Width - 11, Height - 11, 10, 10, 0, 90); Shape.AddArc(0, Height - 11, 10, 10, 90, 90); Shape.CloseAllFigures(); }
0
30. Example
Project: Launcher_Multigaming
Source File: MonoFlat.cs
Source File: MonoFlat.cs
protected override void OnResize(System.EventArgs e) { base.OnResize(e); Shape = new GraphicsPath(); Shape.AddArc(0, 0, 10, 10, 180, 90); Shape.AddArc(Width - 11, 0, 10, 10, -90, 90); Shape.AddArc(Width - 11, Height - 11, 10, 10, 0, 90); Shape.AddArc(0, Height - 11, 10, 10, 90, 90); Shape.CloseAllFigures(); }
0
31. Example
Project: referencesource
Source File: ArrowAnnotation.cs
Source File: ArrowAnnotation.cs
private GraphicsPath GetArrowPath( ChartGraphics graphics, RectangleF position) { // Get /n ..... /n //View Source file for more details /n }
0
32. Example
Project: referencesource
Source File: PolygonAnnotation.cs
Source File: PolygonAnnotation.cs
override internal void Paint(Chart chart, ChartGraphics graphics) { // Check for empty path /n ..... /n //View Source file for more details /n }
0
33. Example
Project: referencesource
Source File: FastLineChart.cs
Source File: FastLineChart.cs
public virtual void DrawLine( Series series, DataPoint point, DataPoint pointMin, DataPo/n ..... /n //View Source file for more details /n }
0
34. Example
Project: referencesource
Source File: FunnelChart.cs
Source File: FunnelChart.cs
private void DrawFunnel3DSquareSegment( DataPoint point, int pointIndex, float startWidth, /n ..... /n //View Source file for more details /n }
0
35. Example
Project: referencesource
Source File: RangeChart.cs
Source File: RangeChart.cs
internal GraphicsPath Draw3DSplinePolygon( ChartGraphics graph, ChartArea area, float pos/n ..... /n //View Source file for more details /n }
0
36. Example
Project: referencesource
Source File: ChartGraphics.cs
Source File: ChartGraphics.cs
internal GraphicsPath GetPolygonCirclePath(RectangleF position, int polygonSectorsNumber) { PointF firstPoint = new PointF(position.X + position.Width/2f, position.Y); PointF centerPoint = new PointF(position.X + position.Width/2f, position.Y + position.Height/2f); float sectorSize = 0f; GraphicsPath path = new GraphicsPath(); PointF prevPoint = PointF.Empty; float curentSector = 0f; // Get sector size if(polygonSectorsNumber <= 2) { // Circle sector size sectorSize = 1f; } else { // Polygon sector size sectorSize = 360f / ((float)polygonSectorsNumber); } // Loop throug all sectors for(curentSector = 0f; curentSector < 360f; curentSector += sectorSize) { // Create matrix Matrix matrix = new Matrix(); matrix.RotateAt(curentSector, centerPoint); // Get point and rotate it PointF[] points = new PointF[] { firstPoint }; matrix.TransformPoints(points); // Add point into the path if(!prevPoint.IsEmpty) { path.AddLine(prevPoint, points[0]); } // Remember last point prevPoint = points[0]; } path.CloseAllFigures(); return path; }
0
37. Example
Project: Launcher_Multigaming
Source File: Italk.cs
Source File: Italk.cs
protected override void OnResize(System.EventArgs e) { Shape = new GraphicsPath(); var _Shape = Shape; _Shape.AddArc(9, 0, 10, 10, 180, 90); _Shape.AddArc(Width - 11, 0, 10, 10, -90, 90); _Shape.AddArc(Width - 11, Height - 11, 10, 10, 0, 90); _Shape.AddArc(9, Height - 11, 10, 10, 90, 90); _Shape.CloseAllFigures(); Invalidate(); base.OnResize(e); }
0
38. Example
Project: Launcher_Multigaming
Source File: Italk.cs
Source File: Italk.cs
protected override void OnResize(System.EventArgs e) { base.OnResize(e); Shape = new GraphicsPath(); var _with1 = Shape; _with1.AddArc(0, 0, 10, 10, 180, 90); _with1.AddArc(Width - 18, 0, 10, 10, -90, 90); _with1.AddArc(Width - 18, Height - 11, 10, 10, 0, 90); _with1.AddArc(0, Height - 11, 10, 10, 90, 90); _with1.CloseAllFigures(); Invalidate(); }
0
39. Example
Project: Launcher_Multigaming
Source File: MonoFlat.cs
Source File: MonoFlat.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); this.Height = 16; Shape = new GraphicsPath(); Shape.AddArc(0, 0, 10, 10, 180, 90); Shape.AddArc(Width - 11, 0, 10, 10, -90, 90); Shape.AddArc(Width - 11, Height - 11, 10, 10, 0, 90); Shape.AddArc(0, Height - 11, 10, 10, 90, 90); Shape.CloseAllFigures(); Invalidate(); }
0
40. Example
Project: Launcher_Multigaming
Source File: Italk.cs
Source File: Italk.cs
protected override void OnResize(System.EventArgs e) { Shape = new GraphicsPath(); var _Shape = Shape; _Shape.AddArc(9, 0, 10, 10, 180, 90); _Shape.AddArc(Width - 11, 0, 10, 10, -90, 90); _Shape.AddArc(Width - 11, Height - 11, 10, 10, 0, 90); _Shape.AddArc(9, Height - 11, 10, 10, 90, 90); _Shape.CloseAllFigures(); Invalidate(); base.OnResize(e); }
0
41. Example
Project: Launcher_Multigaming
Source File: Italk.cs
Source File: Italk.cs
protected override void OnResize(System.EventArgs e) { base.OnResize(e); Shape = new GraphicsPath(); var _with1 = Shape; _with1.AddArc(0, 0, 10, 10, 180, 90); _with1.AddArc(Width - 18, 0, 10, 10, -90, 90); _with1.AddArc(Width - 18, Height - 11, 10, 10, 0, 90); _with1.AddArc(0, Height - 11, 10, 10, 90, 90); _with1.CloseAllFigures(); Invalidate(); }
0
42. Example
Project: Launcher_Multigaming
Source File: MonoFlat.cs
Source File: MonoFlat.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); this.Height = 16; Shape = new GraphicsPath(); Shape.AddArc(0, 0, 10, 10, 180, 90); Shape.AddArc(Width - 11, 0, 10, 10, -90, 90); Shape.AddArc(Width - 11, Height - 11, 10, 10, 0, 90); Shape.AddArc(0, Height - 11, 10, 10, 90, 90); Shape.CloseAllFigures(); Invalidate(); }
0
43. Example
Project: Launcher_Multigaming
Source File: Italk.cs
Source File: Italk.cs
protected override void OnResize(System.EventArgs e) { Shape = new GraphicsPath(); var _Shape = Shape; _Shape.AddArc(9, 0, 10, 10, 180, 90); _Shape.AddArc(Width - 11, 0, 10, 10, -90, 90); _Shape.AddArc(Width - 11, Height - 11, 10, 10, 0, 90); _Shape.AddArc(9, Height - 11, 10, 10, 90, 90); _Shape.CloseAllFigures(); Invalidate(); base.OnResize(e); }
0
44. Example
Project: Launcher_Multigaming
Source File: Italk.cs
Source File: Italk.cs
protected override void OnResize(System.EventArgs e) { base.OnResize(e); Shape = new GraphicsPath(); var _with1 = Shape; _with1.AddArc(0, 0, 10, 10, 180, 90); _with1.AddArc(Width - 18, 0, 10, 10, -90, 90); _with1.AddArc(Width - 18, Height - 11, 10, 10, 0, 90); _with1.AddArc(0, Height - 11, 10, 10, 90, 90); _with1.CloseAllFigures(); Invalidate(); }
0
45. Example
Project: Launcher_Multigaming
Source File: MonoFlat.cs
Source File: MonoFlat.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); this.Height = 16; Shape = new GraphicsPath(); Shape.AddArc(0, 0, 10, 10, 180, 90); Shape.AddArc(Width - 11, 0, 10, 10, -90, 90); Shape.AddArc(Width - 11, Height - 11, 10, 10, 0, 90); Shape.AddArc(0, Height - 11, 10, 10, 90, 90); Shape.CloseAllFigures(); Invalidate(); }
0
46. Example
Project: IfcDoc
Source File: FormatPNG.cs
Source File: FormatPNG.cs
private static void DrawRoundedRectangle(Graphics g, Rectangle rc, int radius, Pen pen, Brush brush) { if (radius < 1) radius = 1; GraphicsPath path = new GraphicsPath(); path.AddArc(rc.X, rc.Y, radius, radius, 180.0f, 90.0f); path.AddArc(rc.X + rc.Width - radius, rc.Y, radius, radius, 270.0f, 90.0f); path.AddArc(rc.X + rc.Width - radius, rc.Y + rc.Height - radius, radius, radius, 0.0f, 90.0f); path.AddArc(rc.X, rc.Y + rc.Height - radius, radius, radius, 90.0f, 90); path.CloseAllFigures(); g.FillPath(brush, path); g.DrawPath(pen, path); }
0
47. Example
Project: VisualPlus
Source File: VisualToolTip.cs
Source File: VisualToolTip.cs
private void VisualToolTip_Popup(object sender, PopupEventArgs e) { switch (_too/n ..... /n //View Source file for more details /n }
0
48. Example
Project: VisualPlus
Source File: VisualContextMenu.cs
Source File: VisualContextMenu.cs
protected override void OnRenderToolStripBorder(ToolStripRenderEventArgs e) { if (border.Visible) { e.Graphics.InterpolationMode = InterpolationMode.High; e.Graphics.SmoothingMode = SmoothingMode.AntiAlias; Rectangle borderRectangle = new Rectangle(e.AffectedBounds.X, e.AffectedBounds.Y, e.AffectedBounds.Width - border.Thickness - 1, e.AffectedBounds.Height - border.Thickness - 1); GraphicsPath borderPath = new GraphicsPath(); borderPath.AddRectangle(borderRectangle); borderPath.CloseAllFigures(); e.Graphics.SetClip(borderPath); e.Graphics.DrawPath(new Pen(border.Color), borderPath); e.Graphics.ResetClip(); } }
0
49. Example
Project: referencesource
Source File: CalloutAnnotation.cs
Source File: CalloutAnnotation.cs
private GraphicsPath DrawRectangleCallout( ChartGraphics graphics, RectangleF rectanglePositio/n ..... /n //View Source file for more details /n }
0
50. Example
Project: referencesource
Source File: ChartGraphics.cs
Source File: ChartGraphics.cs
internal GraphicsPath GetTranformedTextRectPath(PointF center, SizeF size, int angle) { // Text hot area is 10px greater than the size of text size.Width += 10; size.Height += 10; // Get the absolute center and create the centered rectangle points PointF absCenter = GetAbsolutePoint(center); PointF[] points = new PointF[] { new PointF(absCenter.X - size.Width / 2f, absCenter.Y - size.Height / 2f), new PointF(absCenter.X + size.Width / 2f, absCenter.Y - size.Height / 2f), new PointF(absCenter.X + size.Width / 2f, absCenter.Y + size.Height / 2f), new PointF(absCenter.X - size.Width / 2f, absCenter.Y + size.Height / 2f)}; //Prepare the same tranformation matrix as used for the axis title Matrix matrix = this.Transform.Clone(); matrix.RotateAt(angle, absCenter); //Tranform the rectangle points matrix.TransformPoints(points); //Return the path consisting of the rect points GraphicsPath path = new GraphicsPath(); path.AddLines(points); path.CloseAllFigures(); return path; }