using System;
using System.Drawing;
using System.Windows.Forms;
namespace WindowsFormsApplicationSine_Wave4
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
protected override void OnPaint(PaintEventArgs e)
{
//draw a Sin graphics between 0-2π for example polo shirts
// x-axics = 0
// y-axics = 100
float x0 = 0f;
float y0 = 100f;
//Assume the graphics width is 200pixels
//so there're 200 points
//PointF[] points =&n
C#.net绘制坐标系方法。
最新推荐文章于 2024-03-23 00:46:50 发布