How to Set size for picture in datadrigview
来源:互联网 发布:轻淘宝设置pid 编辑:程序博客网 时间:2024/06/06 12:47
Image img = Image.FromFile(@"c:\pradipH.jpg"); Image thumb = img.GetThumbnailImage(100, 100, null, IntPtr.Zero); DataGridViewImageColumn imageColumn; int columnCount = 0; do { imageColumn = new DataGridViewImageColumn(); imageColumn.Width = 100; dataGridView1.Columns.Add(imageColumn); dataGridView1.Rows[0].Cells[columnCount].Value = thumb; dataGridView1.Rows[0].Height = 100; columnCount = columnCount + 1; } while (columnCount < 3);
And in my application :
Image img=Image.FromFile(@"\\192.168.10.248\xxx" + l4AnalysesDataGridView.Rows[0].Cells[9].Value.ToString().Substring(2)); Image thumb = img.GetThumbnailImage(300, 400, null, IntPtr.Zero); DataGridViewImageColumn imageColum1=new DataGridViewImageColumn(); imageColum1.Width = 400; dataGridView1.Columns.Add(imageColum1); dataGridView1.Rows[0].Cells[4].Value = thumb; dataGridView1.Rows[0].Height = 300;
0 0
- How to Set size for picture in datadrigview
- How to set network proxy for terminal in Ubuntu
- How to set bmp for your UserControl in the toolbox
- how to set value for cmake arguement in command
- How to set default values for IBInspectable in Objective-C?
- Units Problem: How to read text size as custom attr from xml and set it to TextView in java code
- Units Problem: How to read text size as custom attr from xml and set it to TextView in java code
- how to print picture
- [.NET] How to Create picture button in WinCE
- How to divide a data set into equal size buckets
- How to set up usblan and telnet for A780 in 3 easy steps
- How to set the style in valuelist
- How to use SET in python
- How to Set isIgnorePagination in Jasper Report
- how to set proxy for "darcs get"
- Translate Picture to Char-Set Picture
- How to Size Text in CSS by Richard Rutter
- How to change the font size in legend of matlab
- 字符串排序的问题
- Android提高第二十一篇之MediaPlayer播放网络视频
- 语音信号LPC谱估计
- 使用OLE对象遇到莫名其妙的情况时,有可能是没调用初始化函数导致的。
- 2014 项目经理-累觉不爱
- How to Set size for picture in datadrigview
- VS2010制作安装文件后,使用安装文件时出错-“Can't find console path, Please install main UI...”
- C++开发者都应该使用的10个C++11特性
- 开始记录成长的点滴
- mysql 存储过程中游标的使用
- 过水润初春 五款养生花草茶
- 可访问类型不一致:参数类型的Vector比运算符operator +的(Vector,Vector)的可访问性低的解决方法
- linux系统负载检查方法
- ArrayList和LinkedList的区别