public ScreenScale(ScreenSize source, ScreenRatio ratio) { using (this.Suspend()) { Source = source; Ratio = ratio; } this.Subscribe(); }
public static ScreenSize Wpf(this ScreenSizeInPixels source, ScreenRatio ratio) => new ScreenScale(source, ratio);
public static ScreenRatio Inverse(this ScreenRatio source) => new ScreenInverseRatio(source);
public static ScreenSize Scale(this ScreenSize source, ScreenRatio ratio) => new ScreenScale(source, ratio);