using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApp4
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Paint(object sender, PaintEventArgs e)
{
DrawSin(e.Graphics);
}
private void DrawSin(Graphics g)
{
Pen p = new Pen(Color.Black, 1);
int Zoom = 10; //放大倍数
Point center = new Point(100, 100); //原点
float x1 = (float)(0 * Math.PI * Zoom / 180 + center.X);
float y1 = (floa