コード例 #1
0
        public Diagram(Graphics g)
        {
            drawingSurface = g;

            g.TextRenderingHint  = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
            g.SmoothingMode      = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
            g.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality;
            BFConverter.Init();
        }
コード例 #2
0
        public Diagram(Graphics g, ActivityConfig.ACSeriesRow initialStep)
        {
            mySeries             = initialStep.SeriesRow;
            drawingSurface       = g;
            g.TextRenderingHint  = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
            g.SmoothingMode      = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
            g.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality;


            drawingSurface.Clear(drawingSurfaceBGColor);

            curPoint = new Point(100, 10);
            BFConverter.Init();

            if (initialStep != null)
            {
                AddStep(initialStep);
            }
        }