示例#1
0
 public static Size Truncate(SizeF value)
 {
     return new Size((int)value.Width, (int)value.Height);
 }
示例#2
0
 public static Size Ceiling(SizeF value)
 {
     return new Size((int)Math.Ceiling(value.Width), (int)Math.Ceiling(value.Height));
 }
示例#3
0
 public static Size Round(SizeF value)
 {
     return new Size((int)Math.Round(value.Width), (int)Math.Round(value.Height));
 }
示例#4
0
 public static PointF Subtract(PointF pt, SizeF sz)
 {
     return new PointF(pt.X - sz.Width, pt.Y - sz.Height);
 }
示例#5
0
 public static PointF Add(PointF pt, SizeF sz)
 {
     return new PointF(pt.X + sz.Width, pt.Y + sz.Height);
 }
示例#6
0
 public SizeF(SizeF size)
 {
     width = size.width;
     height = size.height;
 }
示例#7
0
 public static SizeF Subtract(SizeF sz1, SizeF sz2)
 {
     return new SizeF(sz1.Width - sz2.Width, sz1.Height - sz2.Height);
 }
示例#8
0
 public static SizeF Add(SizeF sz1, SizeF sz2)
 {
     return new SizeF(sz1.Width + sz2.Width, sz1.Height + sz2.Height);
 }