由直线、曲线创建图形,using System.Drawing.Drawing2D;的应用例子,C#源代码 Point[] points = { new Point(40, 60), new Point(50, 70), new Point(30, 90)}; GraphicsPath path = new GraphicsPath(); path.StartFigure(); // Start the first figure. path.AddArc(175, 50, 50, 50, 0, -180); path.AddLine(100, 0, 250, 20); // First figure is not closed. path.StartFigure(); // Start the second figure. path.AddLine(50, 20, 5, 90); path.AddCurve(points, 3); path.AddLine(50, 150, 150, 180); path.CloseFigure(); // Second figure is closed. e.Graphics.DrawPath(new Pen(Color.FromArgb(255, 255, 0, 0), 2), path); }
1
NAudio采集音频,将音频处理成时域图形,可采集多频率音频,消耗资源低,背景色可自行选择,可选择动图或刷新
2021-03-29 13:44:40 6.58MB winform Drawing2D NAudio 音频图形处理
1