本人想把一个控件保存成图像,比如button,label等,求帮忙 Graphics g = this.button1.CreateGraphics();
Bitmap bm = new Bitmap(this.button1.Width, this.button1.Height, g);
bm.Save("button.jpg");还差什么东西了
Bitmap bm = new Bitmap(this.button1.Width, this.button1.Height, g);
bm.Save("button.jpg");还差什么东西了
解决方案 »
- DevExpress 如何改变xtraTabPage的显示位置
- 怎样在PICTUREBOX中用鼠标拖动图片?我PICTUREBOS是fill整个formd的
- 求一个用TCP/IP协议实现WCF的例子,越简单越好
- 怎么让程序安装到电脑上以后就开机自动运行!不需要任何设置!!
- 急,请高手做两张页面,有 现金 酬劳!
- Windows 资源本地化编辑器 (winres.exe) 怎么用?
- 关于几乎同时用filestream打开同一个文本后面一个程序报错的问题
- 火死了,我太笨了,这个c#图片上传问题还没解决,50分求源码了!
- 我想做一个游戏外挂 怎么能找到那个游戏的窗口,并向这个窗口发送一些键盘指令
- 英文不好,外过的很多技术资料全看不了
- FTP上传,中文乱码问题
- c# 有关于flash
Graphics.DrawImage(bm,point)
CellButton.Size = new Size((int)ColumnWidths[i], CellHeight);
Bitmap bmp = new Bitmap(CellButton.Width, CellButton.Height);
CellButton.DrawToBitmap(bmp, new Rectangle(0, 0,bmp.Width, bmp.Height));
e.Graphics.DrawImage(bmp, new Point((int)ColumnLefts[i], tmpTop));