- 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;
- namespace RectangleTest
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void Form1_Paint(object sender, PaintEventArgs e)
- {
- Graphics g = e.Graphics;
- Pen pen = new Pen(Color.Orange,3);
- g.DrawRectangle(pen,10,10,100,50);
- g.DrawLine(pen,new Point(10,70) ,new Point(110,70));
- }
- }
- }
C#编程-132:DrawRectangle绘制矩形_彭世瑜_新浪博客
原创
©著作权归作者所有:来自51CTO博客作者彭世瑜的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
C#编程-145:Threading线程基础_彭世瑜_新浪博客java python 多线程 c++ 编程语言
-
C#编程-138:网络编程基础_彭世瑜_新浪博客
网络编程基础_彭世瑜_新浪博客
网络 python 编程语言 算法 java