public Image ConvertToGif(EquationInput ei)
        {
            m_ei = ei;

            string fileName = Path.GetTempPath() + Guid.NewGuid().ToString() + ".tmp";

            m_eo = new EquationOutputFileGIF(fileName);

            if (m_ei.Get())
            {
                // Console.WriteLine("Get MTEF");
                if (m_ei.GetMTEF())
                {
                    if (ConvertToOutput())
                    {
                        Image img = Bitmap.FromFile(fileName);
                        //File.Delete(fileName);

                        return(img);
                    }
                }
            }

            return(null);
        }
        public string ConvertToText(EquationInput ei)
        {
            m_ei = ei;
            m_eo = new EquationOutputFileText("", "Texvc.tdl");

            if (m_ei.Get())
            {
                // Console.WriteLine("Get MTEF");
                if (m_ei.GetMTEF())
                {
                    if (ConvertToOutput())
                    {
                        return(m_eo.strEquation);
                    }
                }
            }

            return("");
        }
 // convert
 virtual public bool Convert(EquationInput ei, EquationOutput eo)
 {
     m_ei = ei;
     m_eo = eo;
     return(Convert());
 }