C#-EXCEL编程-教你实现用Excel画《清明上河图》.docxVIP

  • 34
  • 0
  • 约2.2千字
  • 约 4页
  • 2017-06-12 发布于四川
  • 举报

C#-EXCEL编程-教你实现用Excel画《清明上河图》.docx

C#-EXCEL编程-教你实现用Excel画《清明上河图》思路:取BMP图片上坐标的R/G/B值填充到EXCEL中单元格运行环境:VS 2010EXCEL 2007关键方法:Color tempColor = myBitmap.GetPixel(i, j); int cr = tempColor.R;//取像素的RGB值int cg = tempColor.G;int cb = tempColor.B;Excel.Range titleRange = (Excel.Range)m_objSheet.Cells.get_Item(j, i);// row,col 选择行、列titleRange.Interior.Color = Color.FromArgb(cr, cg, cb); //设置行、列单元格的颜色全部代码:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Data.SqlClient;using System.IO;using Excel = Mi

文档评论(0)

1亿VIP精品文档

相关文档