Fix export image header error

This commit is contained in:
2018-12-27 09:04:55 +08:00
parent 85578852da
commit 75cd0249ee

View File

@ -71,8 +71,8 @@ namespace HFUTCourseSimulation {
//draw header
graphics.FillRectangle(headerBrush, 0, 0, weekWidth, HeaderCellHeight);
graphics.FillRectangle(headerBrush, 0, 0, LeftCellWidth, weekHeight - WeekHeaderHeight);
graphics.FillRectangle(headerBrush, 0, 0, weekWidth - Blank, HeaderCellHeight);
graphics.FillRectangle(headerBrush, 0, 0, LeftCellWidth, weekHeight - WeekHeaderHeight - Blank);
//draw header text
for (int j = 0; j < 7; j++) {
graphics.DrawString(weekDict[j], textFont, textBrush, LeftCellWidth + j * BodyCellWidth, 0);