Use real unit (um and ppi) instead of pixel in the parameters.
[master-thesis.git] / Parasitemia / Parasitemia / UnitsOfMeasure.fs
1 module UnitsOfMeasure
2
3 [<Measure>]
4 type px
5
6 [<Measure>]
7 type μm =
8 static member ConvertToInch(x: float<μm>) : float<inch> =
9 x * 1.<inch> / 25.4e3<μm>
10
11 and [<Measure>] inch
12
13
14 [<Measure>]
15 type ppi = px / inch
16
17
18