예제 #1
0
 private static double WidthToDPI(SWMI.BitmapSource img, double pixels)
 {
     return pixels * 96 / img.DpiX;
 }
예제 #2
0
 private static double HeightToDPI(SWMI.BitmapSource img, double pixels)
 {
     return pixels * 96 / img.DpiY;
 }