FMATH FORMULA - FREE solution to display equations or mathematical symbols weusing MathML, LaTeX or OMML (Microsoft Word) standards.
FMATH EDITOR - FREE solution to edit equations or mathematical symbols on web pages using MathML, LaTeX or OMML (Microsoft Word) standards.
FMATH for FLASH/Flex - FREE components for AS3 applications to display and edit equations using MathML, LaTeX or OMML (Microsoft Word) standards.
FMATH is a FREE solution to display and edit equations on web pages, desktop app or mobile devices using MathML, LaTeX or OMML (Microsoft Word) standards.

FMath C# Implementation


  		

Go to Download area for java 
	- to get the dll file (name: fmath-mathml-csharp-b*.dll.zip).
	or	
	- to get a test C# project (name: fmath-mathml-csharp-test-project-b*.zip).


Example tu use the UserControl:
	- Add the dll: WinMathML.dll to your project
	- Import the dll to Toolbox ("MathMLFormulaControl")
	- Drag and drop in Design Mode

	...
	    // settings - one time
            MathMLFormulaControl.setFolderUrlForFonts("../../fonts");
            MathMLFormulaControl.setFolderUrlForGlyphs("../../glyphs");
	...	
	
	...
	    private fmath.controls.MathMLFormulaControl mathMLViewer = new fmath.controls.MathMLFormulaControl();
	
            mathMLViewer.AutoScroll = true;
            mathMLViewer.BackColor = System.Drawing.Color.Transparent;
            mathMLViewer.Contents = "<math><mtext>Select Formula</mtext></math>";
            mathMLViewer.Font = new System.Drawing.Font("Harlow Solid Italic", 24F, 
            	System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            mathMLViewer.ForeColor = System.Drawing.SystemColors.WindowText;
            mathMLViewer.Location = new System.Drawing.Point(6, 7);
            mathMLViewer.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
            mathMLViewer.Name = "mathMLViewer";
            mathMLViewer.Size = new System.Drawing.Size(751, 399);
            mathMLViewer.TabIndex = 0;
	...

	    //to change the display:
            mathMLViewer.Contents = "<math><mtext>New Formula</mtext></math>";;
	...	
	
	   // for latex add
            mathMLViewer.latex = true;
	   

Example to use to get the Bitmap:
	...
	    // settings - one time
            MathMLFormulaControl.setFolderUrlForFonts("../../fonts");
            MathMLFormulaControl.setFolderUrlForGlyphs("../../glyphs");
	...	
	
	    // how to use
            Bitmap bmp = WinMathML.MathMLView.generateBitmap(item.Value);
            bmp.Save("../../generatedImages/" + item.Name + ".png", System.Drawing.Imaging.ImageFormat.Png);
            bmp.Dispose();
	...
	    // for latex
	    Bitmap bmp = MathMLFormulaControl.generateBitmapFromLatex(item.Value);
                bmp.Save("../../generatedImages/" + item.Name + ".png", System.Drawing.Imaging.ImageFormat.Png);
                bmp.Dispose();
	...


MathML Display in:

C# Implementation - Windows drawing More info...


Latex Display in:

C# Implementation - Windows drawing More info...
`


www.learn-math.info | www.apprendre-math.info | www.aprender-mat.info | www.invata-mate.info
Designed by Diana Alexandru
free components MathML flex GWT LaTeX Editor Air plugin MathML flash math Mathematics Equation Widget Mobile flash LaTeX Mathematics FREE Apple iOS OMML Android iPad iPhone Microsoft Word Latex MathML OMML Free