110,545
社区成员
发帖
与我相关
我的任务
分享
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 exam2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
Bitmap bit = new Bitmap(400, 400);
private void Form1_Load(object sender, EventArgs e)
{
Graphics g = Graphics.FromImage(bit);
g.FillRectangle(new SolidBrush(Color.BurlyWood), 10, 10, 100, 100);
}
private void Form1_Paint(object sender, PaintEventArgs e)
{
}
}
}