File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change 1
- using System ;
2
- using System . Collections . Generic ;
3
- using System . Linq ;
4
- using System . Reflection ;
5
- using System . Text ;
6
- using System . Threading . Tasks ;
1
+ using System . Reflection ;
7
2
using System . Windows ;
8
3
using System . Windows . Media ;
9
4
@@ -14,8 +9,8 @@ internal static class DpiHelper
14
9
private static readonly int DpiX ;
15
10
private static readonly int DpiY ;
16
11
17
- private const double StandartDpiX = 96.0 ;
18
- private const double StandartDpiY = 96.0 ;
12
+ private const double StandardDpiX = 96.0 ;
13
+ private const double StandardDpiY = 96.0 ;
19
14
20
15
static DpiHelper ( )
21
16
{
@@ -44,12 +39,12 @@ public static double TransformToDeviceX(Visual visual, double x)
44
39
45
40
public static double TransformToDeviceY ( double y )
46
41
{
47
- return y * DpiY / StandartDpiY ;
42
+ return y * DpiY / StandardDpiY ;
48
43
}
49
44
50
45
public static double TransformToDeviceX ( double x )
51
46
{
52
- return x * DpiX / StandartDpiX ;
47
+ return x * DpiX / StandardDpiX ;
53
48
}
54
49
}
55
50
}
You can’t perform that action at this time.
0 commit comments