Explorar o código

报告导出拼接图,修改下背景颜色

zhangjiaxin hai 1 ano
pai
achega
5b1d0266fc
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      OTSIncAReportApp/1-UI/Control_Graph/Controls/OutPIC.cs

+ 3 - 0
OTSIncAReportApp/1-UI/Control_Graph/Controls/OutPIC.cs

@@ -181,6 +181,9 @@ namespace OTSIncAReportApp._3_ServiceCenter
                                 Bitmap image = new Bitmap(bitmap.Width, bitmap.Height);
                                 Bitmap image = new Bitmap(bitmap.Width, bitmap.Height);
                                 Graphics graph_2 = Graphics.FromImage(image);
                                 Graphics graph_2 = Graphics.FromImage(image);
 
 
+                                Color color1 = Color.FromArgb(217, 217, 217);
+                                graph_2.Clear(color1);
+
                                 for (int a = 0; a < fieldlist.Count; a++)
                                 for (int a = 0; a < fieldlist.Count; a++)
                                 {
                                 {
                                     if (fieldlist[a].FieldID.ToString() == f.FieldID.ToString())
                                     if (fieldlist[a].FieldID.ToString() == f.FieldID.ToString())