Пример #1
0
 public static Size Normalize(this Cards.ImagePositions.Size size, Cards.ImagePositions.Size totalSize)
 {
     return(new Size(size.Width / totalSize.Width, size.Height / totalSize.Height));
 }
Пример #2
0
 public static Rect Normalize(this Cards.ImagePositions.Rect rect, Cards.ImagePositions.Size totalSize)
 {
     return(new Rect(
                new Point(rect.Left / totalSize.Width, rect.Top / totalSize.Height),
                rect.Size.Normalize(totalSize)));
 }