线图清单 [英] Drawing list of Line
本文介绍了线图清单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
private ArrayList drawingList;
private ArrayList objectIdentifier;
int ix = drawingList.Add(new Line (new Point((int)x1, (int) -y1), new Point((int)x2, (int)-y2) , Color.White, 1));
objectIdentifier.Add (new DrawingObject (2, ix));
我想在Asp.net(网络应用程序)中执行此操作.
有人请帮忙.
:doh:
I want to do this in Asp.net(web application).
Anybody please help.
:doh:
推荐答案
循环遍历arraylist并绘制添加的每一行.
foreach(图纸清单中的li线)
{
li.draw();
}
http://msdn.microsoft.com/en-us/library/system.drawing. graphics.aspx [^ ],以获取有关在c#中绘制的更多信息
loop through the arraylist and draw each of the lines you added.
foreach(line li in drawinglist)
{
li.draw();
}
http://msdn.microsoft.com/en-us/library/system.drawing.graphics.aspx[^] for more on drawing in c#
这篇关于线图清单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文