Click or drag to resize

ILaTeXFormulaImageStreamProviderParse Method

Parses the specified LaTeX formula text.

Namespace: Altaxo.Main.Services
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
(Stream bitmapStream, string placement, int yoffset, int width96thInch, int height96thInch) Parse(
	string formulaText,
	string fontFamily,
	double fontSize,
	double dpiResolution,
	bool isIntendedForHelp1File
)

Parameters

formulaText  String
The formula text.
fontFamily  String
The font family of the font in with the formula is embedded.
fontSize  Double
Size of the font in which the formula text is embedded.
dpiResolution  Double
The resolution of the required image.
isIntendedForHelp1File  Boolean
Set this argument to true if the image is indended to be used in a Help1 file. In such a file, the placement of images with align="middle" differs from HTML rendering (the text baseline is aligned with the middle of the image, whereas in HTML the middle of the text is aligned with the middle of the image).

Return Value

ValueTupleStream, String, Int32, Int32, Int32
A tuple consisting of 1) the bitmap stream, 2) the html attribute how to place the image, 3) the y-offset in pixels (1/96th inch) the bitmap must be shifted relative to the baseline of the text (for Web rendering with html5), 4) the width of the image in pixels (1/96th inch), and 5) the height of the bitmap in pixels (1/96th inch).
See Also