/// <summary> /// 构造函数 /// </summary> /// <param name="ScreenCoordArea"></param> /// <param name="Graphics"></param> public UserChartGraphics(ScreenCoordConverter ScreenCoordArea, Graphics Graphics) { this.UserToScreenCoordConverter = ScreenCoordArea; this.Graphics = Graphics; this.GraphicsText = new GraphicsText(); DefaultFont = new Font("微软雅黑", 10); DefaultBrush = new SolidBrush(Color.Black); }
/// <summary> /// 构造函数 /// </summary> /// <param name="ScreenCoordArea"></param> public UserChartGraphics(ScreenCoordConverter ScreenCoordArea) { this.UserToScreenCoordConverter = ScreenCoordArea; this.GraphicsText = new GraphicsText(); DefaultFont = new Font("宋体", 8); DefaultBrush = new SolidBrush(Color.Black); DefaultStringFormat = new StringFormat(); DefaultStringFormat.Alignment = StringAlignment.Center; DefaultStringFormat.LineAlignment = StringAlignment.Center; }