Example #1
0
        static public Bitmap drawCurveOnImage(float[] X_array, float[] Y_array, string chartTitle, string X_title, string Y_title, int X_KeduCount, int Y_KeduCount)
        {
            CurvePaint CI = new CurvePaint();

            CI.XkeduCount = X_KeduCount;
            CI.YkeduCount = Y_KeduCount;
            return(CI.drawCurve(X_array, Y_array, chartTitle, X_title, Y_title));
        }
Example #2
0
        static public Bitmap drawCurveOnImage(float[] X_array, float[] Y_array, string chartTitle, string X_title, string Y_title, int X_KeduCount, int Y_KeduCount, float X_valueStrMoveleft, float Y_valueStrMoveleft, bool X_DirectionVertical)
        {
            CurvePaint CI = new CurvePaint();

            CI.XkeduCount           = X_KeduCount;
            CI.YkeduCount           = Y_KeduCount;
            CI.XvalueStrMoveleft    = X_valueStrMoveleft;
            CI.YvalueStrMoveleft    = Y_valueStrMoveleft;
            CI._X_DirectionVertical = X_DirectionVertical;
            return(CI.drawCurve(X_array, Y_array, chartTitle, X_title, Y_title));
        }
Example #3
0
        private void Demo1() {
            float[] month = new float[12];
            for (int i = 0; i < 12; i++)
            {
                month[i] = i + 1;
            }

            float[] d = new float[12] { 20.5f, 60, 10.8f, 15.6f, 30, 70.9f, 50.3f, 30.7f, 70, 50.4f, 30.8f, 20 };
            pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;
            CurvePaint cp = new CurvePaint();
            cp.XkeduCount = 10;
            cp.YkeduCount = 10;
            cp.XvalueStrMoveleft = 15;
            pictureBox1.Image = cp.drawCurve(month, d, "某工厂某产品月生产量图表2", "月份", "产量(万)");
        }
Example #4
0
        private void Demo1()
        {
            float[] month = new float[12];
            for (int i = 0; i < 12; i++)
            {
                month[i] = i + 1;
            }

            float[] d = new float[12] { 20.5f, 60, 10.8f, 15.6f, 30, 70.9f, 50.3f, 30.7f, 70, 50.4f, 30.8f, 20 };
            pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;
            CurvePaint cp = new CurvePaint();
            cp.XkeduCount = 10;
            cp.YkeduCount = 10;
            cp.XvalueStrMoveleft = 15;
            pictureBox1.Image = cp.drawCurve(month, d, "某工厂某产品月生产量图表2", "月份", "产量(万)");
        }
Example #5
0
        private void Demo2()
        {
            float[] conc = new float[8];
            for (int i = 0; i < 8; i++)
            {
                conc[i] = i + 1;
            }

            float[] od = new float[8] { 0.05F, 0.1F, 0.2F, 1.2F, 2.7F, 3.5F, 3.6F, 3.65F };
            pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;
            CurvePaint cp = new CurvePaint();
            cp.XkeduCount = 10;
            cp.YkeduCount = 10;
            cp.XvalueStrMoveleft = 15;
            pictureBox1.Image = cp.drawCurve(conc, od, "Standard Curve", "Conc.", "OD Value");
        }
Example #6
0
        static public Bitmap drawCurveOnImage(float[] X_array, float[] Y_array, string chartTitle, string X_title, string Y_title)
        {
            CurvePaint CI = new CurvePaint();

            return(CI.drawCurve(X_array, Y_array, chartTitle, X_title, Y_title));
        }
Example #7
0
        private void Demo2()
        {
            float[] conc = new float[8];
            for (int i = 0; i < 8; i++)
            {
                conc[i] = i + 1;
            }

            float[] od = new float[8] { 0.05F, 0.1F, 0.2F, 1.2F, 2.7F, 3.5F, 3.6F, 3.65F };
            pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;
            CurvePaint cp = new CurvePaint();
            cp.XkeduCount = 10;
            cp.YkeduCount = 10;
            cp.XvalueStrMoveleft = 15;
            pictureBox1.Image = cp.drawCurve(conc, od, "Standard Curve", "Conc.", "OD Value");
        }
Example #8
0
 public static Bitmap drawCurveOnImage(float[] X_array, float[] Y_array, string chartTitle, string X_title, string Y_title, int X_KeduCount, int Y_KeduCount)
 {
     CurvePaint CI = new CurvePaint();
     CI.XkeduCount = X_KeduCount;
     CI.YkeduCount = Y_KeduCount;
     return CI.drawCurve(X_array, Y_array, chartTitle, X_title, Y_title);
 }
Example #9
0
 public static Bitmap drawCurveOnImage(float[] X_array, float[] Y_array, string chartTitle, string X_title, string Y_title)
 {
     CurvePaint CI = new CurvePaint();
     return CI.drawCurve(X_array, Y_array, chartTitle, X_title, Y_title);
 }
Example #10
0
 public static Bitmap drawCurveOnImage(float[] X_array, float[] Y_array, string chartTitle, string X_title, string Y_title, int X_KeduCount, int Y_KeduCount, float X_valueStrMoveleft, float Y_valueStrMoveleft, bool X_DirectionVertical)
 {
     CurvePaint CI = new CurvePaint();
     CI.XkeduCount = X_KeduCount;
     CI.YkeduCount = Y_KeduCount;
     CI.XvalueStrMoveleft = X_valueStrMoveleft;
     CI.YvalueStrMoveleft = Y_valueStrMoveleft;
     CI._X_DirectionVertical = X_DirectionVertical;
     return CI.drawCurve(X_array, Y_array, chartTitle, X_title, Y_title);
 }