在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
缘起 思路 复制代码 代码如下: int max = m_mappingDatas[m_mappingDatas.Count - 1]; m_Ratio = (max + m_mappingDatas[0]*2) / m_width; // Draw Wafer data for (int i = 1, j = 0; i < m_mappingDatas.Count; i+=2 ,j++) { float xStart = m_mappingDatas[i - 1]; float xEnd = m_mappingDatas[i]; graphics.DrawLine(pen, xStart / m_Ratio, m_yPositionOfWafer, xEnd / m_Ratio, m_yPositionOfWafer); graphics.DrawString((j+1).ToString(), Control.DefaultFont, brush, (xStart / m_Ratio) - 2, m_yPositionOfNoWafer + 1); } // Draw No Wafer data graphics.DrawLine(pen, 0, m_yPositionOfNoWafer, m_mappingDatas[0] / m_Ratio, m_yPositionOfNoWafer); for (int i = 2; i < m_mappingDatas.Count; i += 2) { float xStart = m_mappingDatas[i - 1]; float xEnd = m_mappingDatas[i]; graphics.DrawLine(pen, xStart / m_Ratio, m_yPositionOfNoWafer, xEnd / m_Ratio, m_yPositionOfNoWafer); } graphics.DrawLine(pen, m_mappingDatas[m_mappingDatas.Count - 1] / m_Ratio, m_yPositionOfNoWafer, m_width, m_yPositionOfNoWafer); // Draw vertical line for (int i = 1; i < m_mappingDatas.Count; i += 2) { float X1 = m_mappingDatas[i - 1]; float X2 = m_mappingDatas[i]; graphics.DrawLine(pen, X1 / m_Ratio, m_yPositionOfWafer, X1 / m_Ratio, m_yPositionOfNoWafer); graphics.DrawLine(pen, X2 / m_Ratio, m_yPositionOfWafer, X2 / m_Ratio, m_yPositionOfNoWafer); } 在我的代码中,是要扫描半导体晶圆,所以高点是表示有晶圆,低点则是表示没有晶圆 项目下载 |
请发表评论