画表格
请教一下,用画笔画一张,像小学生的生字表格的网页;
如图示:外面一个正方形1.2X1.2CM,内有一个同心圆R=0.5CM,再内有一个同心正方形0.6CNX0.6CM,然后十字线交叉过大的正方形
我写了一段代码,如下,但没有实现效果。求纠正。
Pen penEllipse;
Pen penSquare;
Pen penSquareB;
Pen penLine;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
int width = 1000, hight = 600;
Bitmap image = new Bitmap(width, hight);
Graphics g = Graphics.FromImage(image);
g.Clear(Color.Orange);
for (int h = 1; h < 11; h++)
{
for (int i = 1; i < 11; i++)
{
if (penEllipse == null)
{
penEllipse = new Pen(Color.Blue, 1);
}
if (penSquare == null)
{
penSquare = new Pen(Color.Red, 1);
}
if (penLine == null)
{
&n