using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Drawing2D;
namespace WindowsFormsApplication2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Paint(object sender, PaintEventArgs e)
{
Graphics g = e.Graphics;
Pen p = new Pen(Color.Black);
p.EndCap = LineCap.ArrowAnchor;
g.DrawLine(p, new Point(100, this.Height - 100), new Point(this.Width - 100, this.Height - 100));
g.DrawString("x", this.Font, new SolidBrush(Color.Black), new Point(this.Width - 100 + 5, this.Height - 100));
p.EndCap = LineCap.ArrowAnchor;
g.DrawLine(p, new Point(150, this.Height - 50
C#绘图 正弦曲线
最新推荐文章于 2025-02-21 23:40:23 发布