예제 #1
0
파일: RectangleF.cs 프로젝트: i-e-b/Form8sn
 public void Inflate(SizeF size)
 {
     Inflate(size.Width, size.Height);
 }
예제 #2
0
 // Convert a SizeF object into a Size object using truncating conversion.
 public static Size Truncate(SizeF value)
 {
     return(new Size((int)(value.Width), (int)(value.Height)));
 }
예제 #3
0
 // Convert a SizeF object into a Size object using ceiling conversion.
 public static Size Ceiling(SizeF value)
 {
     return(new Size((int)(Math.Ceiling(value.Width)),
                     (int)(Math.Ceiling(value.Height))));
 }
예제 #4
0
 // Convert a SizeF object into a Size object using rounding conversion.
 public static Size Round(SizeF value)
 {
     return(new Size((int)(Math.Round(value.Width)),
                     (int)(Math.Round(value.Height))));
 }