private void Form1_Paint(object sender, PaintEventArgs e)
{
Image newimage = imageList1.Images[0];
Point point1 = new Point(label1.Location.X - 2, label1.Location.Y + 10);
Point point2 = new Point(label1.Location.X - 2, label1.Location.Y + 15);
Point point3 = new Point(label1.Location.X + 16, label1.Location.Y + 10);
Point[] a = new Point[3] { point1, point2, point3 };
e.Graphics.DrawImage(newimage, a);
}
拖了一个label到窗口我在label上画一幅图,这幅图是imageList中存的一幅图,请问,怎么没有画成功,是啥原因?MSDN:
http://msdn.microsoft.com/zh-cn/library/4f9s3at1.aspx
{
Image newimage = imageList1.Images[0];
Point point1 = new Point(label1.Location.X - 2, label1.Location.Y + 10);
Point point2 = new Point(label1.Location.X - 2, label1.Location.Y + 15);
Point point3 = new Point(label1.Location.X + 16, label1.Location.Y + 10);
Point[] a = new Point[3] { point1, point2, point3 };
e.Graphics.DrawImage(newimage, a);
}
拖了一个label到窗口我在label上画一幅图,这幅图是imageList中存的一幅图,请问,怎么没有画成功,是啥原因?MSDN:
http://msdn.microsoft.com/zh-cn/library/4f9s3at1.aspx
解决方案 »
- 直接将BindingNavigator拖到窗体中,运行时为什么上面的按钮全呈灰色不可用状态?
- 如何写一个Structure
- checkbox 的问题
- 我是笨鸟,问一下TTS在文本朗读时怎么设置SpeechLib.SpeechAudioFormatType.SAFT48kHz16BitStereo;
- 建议添加一个SOA .net论坛,同意的顶。
- GridView 中DataField的问题
- C#里面有没有类似C里面的fscanf函数?
- 我在dataSet里自建了一张表Mytable,由于Mytable表里的列数比较多,在付给datagrid显示时一屏显示不下,但是datagrid就是不出现水平滚动条
- 判定输入的每个数据绝对不能重复
- 请教水晶报表9.0注册码
- C# WinForm下TreeView显示节点显示不全,滚动条也滚动不下去
- ClickOnce发布出错:远程服务器返回错误: (500) 内部服务器错误。
我试过这样能画出来 Graphics graphics = e.Graphics;
Image newImage = Image.FromFile(@"C:\Documents and Settings\hao\My Documents\My Pictures\beauty1.jpg");
Point ulCorner = new Point(100, 100);
Point urCorner = new Point(550, 100);
Point llCorner = new Point(150, 250);
Point[] destPara = { ulCorner, urCorner, llCorner };
graphics.DrawImage(newImage, destPara);