如题:
Graphics graphic = this.CreateGraphics();SolidBrush sldbrush = new SolidBrush(Color.Blue);graphic.FillRectangle(sldbrush, new Rectangle(100, 100, 100, 100));这个矩形如何存到imagelist.images[0]中呢?
Graphics graphic = this.CreateGraphics();SolidBrush sldbrush = new SolidBrush(Color.Blue);graphic.FillRectangle(sldbrush, new Rectangle(100, 100, 100, 100));这个矩形如何存到imagelist.images[0]中呢?
解决方案 »
- 如何创建“Txt”文件,并在“.Txt”文件中写入信息
- 简单的业务逻辑变来变去,能否写成文本,让其自改,好似b/s网站那样
- 如何用C#启动其他程序
- ------100 分-------- Listbox 或者 combo box 实现LineStyle功能
- 请问,什么时候应该使用结构而不是类?
- C#中怎么想vc++那样正确缩进代码
- 竞赛(200分):要求用最高的效率写出object 转 int的函数
- 如何在C/S模式下实现网页表单自动填写?毕业设计很急!
- 求winform 下,可编辑的DataGrid的分页解决方案
- 循环删除???大哥帮忙,急急急急急急急!
- 想动态获取数组的名字,并取其值
- 请教一个Lock语法问题.
加这两句:
Bitmap bitmap = new Bitmap(100, 100, graphic);
this.imageList1.Images.Add(bitmap);