Example #1
0
    private void RenderFormula()
    {
        var tex = EnterExpression.ExpressionToShow(RecordManager.tempRecord.stringExpression);

        LatexEquationRender.Render(tex, res =>
        {
            FormulaImage.FitImage(res, 270, 40);
        });
    }
    /// <summary>
    /// 渲染合成量表达式图片
    /// </summary>
    public void Render()
    {
        var exp = CalcArgs.GetSymexpr(
            EnterExpression.ExpressionToShow(RecordManager.tempRecord.stringExpression))
                  .ToLaTeX();

        LatexEquationRender.Render(exp, x =>
        {
            _Image.FitImage(x, 270, 40);
        });
    }