C#中如何在一幅BMP图片上画线? Graphics g = Graphics.FromImage(...);g.DrawLine(...) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Bitmap bmp;bmp=Bitmap.Fromfile(@"d:\test.bmp");Graphics g;g=Graphics.FromBitmap(bmp);Pen blackPen = new Pen(Color.Black, 3);float x1 = 100.0F;float y1 = 100.0F;float x2 = 500.0F;float y2 = 100.0F;// Draw line to screen.e.Graphics.DrawLine(blackPen, x1, y1, x2, y2); C# 如何根据年月日获取年龄,生肖,星座的算法? C# winform textBox 金融数字格式 vs2005桌面程序发布 如何用Hashtable类在C#中实现将数据库信息显示在textbox中 c#中什么是强类型的对象?? 运算符“==”无法应用于“string”和“int”类型的操作数 datagridview单元格循环对比 关于多线城同时启动的问题! 按键状态 修改表格里的数据 这里有一个很菜的问题,答上来给100分!!!谢谢!!! 多語言介面的實現方法
bmp=Bitmap.Fromfile(@"d:\test.bmp");
Graphics g;
g=Graphics.FromBitmap(bmp);
Pen blackPen = new Pen(Color.Black, 3);
float x1 = 100.0F;
float y1 = 100.0F;
float x2 = 500.0F;
float y2 = 100.0F;
// Draw line to screen.
e.Graphics.DrawLine(blackPen, x1, y1, x2, y2);