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 = new PointF[200];
// 50 pts for 1cycle, 200 pts for 4 cycles
PointF[] points = new PointF[200];
//for (int j = 0; j <
C#.net绘制坐标系方法。
最新推荐文章于 2024-02-04 12:11:21 发布