private DevicePixelsToLogical ( |
||
devicePoint | ||
리턴 |
public static Rect DeviceRectToLogical(Rect deviceRectangle) { Point point = DpiHelper.DevicePixelsToLogical(new Point(deviceRectangle.Left, deviceRectangle.Top)); Point point2 = DpiHelper.DevicePixelsToLogical(new Point(deviceRectangle.Right, deviceRectangle.Bottom)); return(new Rect(point, point2)); }
public static Size DeviceSizeToLogical(Size deviceSize) { Point point = DpiHelper.DevicePixelsToLogical(new Point(deviceSize.Width, deviceSize.Height)); return(new Size(point.X, point.Y)); }
public static Size DeviceSizeToLogical(Size deviceSize) { Point logical = DpiHelper.DevicePixelsToLogical(new Point(deviceSize.Width, deviceSize.Height)); return new Size(logical.X, logical.Y); }