Beispiel #1
0
        static public void DrawFnt(FntX F, Color c)
        {
            Graphique G = Form1.G;

            for (int xecran = 1; xecran < G.GetH(); xecran++)
            {
                double x      = G.XPixToVal(xecran - 1);
                double y      = F(x);
                int    yecran = G.YValToPix(y);

                double x2      = G.XPixToVal(xecran);
                double y2      = F(x2);
                int    yecran2 = G.YValToPix(y2);

                Utils.minmax(ref yecran, ref yecran2);

                for (int yy = yecran; yy <= yecran2; yy++)
                {
                    G.SetPixel(xecran, yy, c);
                }
            }

            G.DrawAxis();
        }