示例#1
0
 public ScreenScale(ScreenSize source, ScreenRatio ratio)
 {
     using (this.Suspend())
     {
         Source = source;
         Ratio  = ratio;
     }
     this.Subscribe();
 }
示例#2
0
 public static ScreenSize Wpf(this ScreenSizeInPixels source, ScreenRatio ratio) => new ScreenScale(source, ratio);
示例#3
0
 public static ScreenRatio Inverse(this ScreenRatio source) => new ScreenInverseRatio(source);
示例#4
0
 public static ScreenSize Scale(this ScreenSize source, ScreenRatio ratio) => new ScreenScale(source, ratio);