Interpreting the baseline
Products: MathType for Windows
MathType stores coordinate information in WMF files in 1/16th of a point, where there are 72 points per inch. The following describes how to convert this value to screen coordinates:
Once the baseline value has been obtained, it needs to be converted to points:
![baseline_to_points.png](../../../image/uuid-9cb5bfec-5cd5-3bff-332f-aeb7946b2d1e.png)
Then converted to inches:
![points_to_inches.png](../../../image/uuid-8112018a-ffa6-2455-005d-865de3900fbe.png)
And finally, converted to pixels*:
![inches_to_pixels.png](../../../image/uuid-49cb97d2-4179-105c-8dcc-94894ba35ef9.png)
For example, if we obtain a baseline of 64:
![example_baseline_conversion.png](../../../image/uuid-6cd038f8-8474-051a-ee05-387e115bf445.png)
* In this example the number of pixels per vertical inch is 96, your results may differ, and so you should obtain this value at runtime using the call: ::GetDeviceCaps(HDC, LOGPIXELSY)
.
While this example demonstrates how to convert to pixels, it should help you convert to whatever coordinate system your application uses.
See also:
Extracting baseline info from WMF (MS Windows) Extracting baseline info from GIF image files
<a><button> Back to MathType SDK intro page</button></a> |