Exemplo n.º 1
0
 public void Inflate(SizeF size)
 {
     Inflate(size.Width, size.Height);
 }
Exemplo n.º 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)));
 }
Exemplo n.º 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))));
 }
Exemplo n.º 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))));
 }