System.Drawing.Size.Truncate C# (CSharp) Method

Truncate() public static method

Converts a SizeF to a Size by performing a truncate operation on all the coordinates.
public static Truncate ( SizeF value ) : Size
value SizeF
return Size
        public static Size Truncate(SizeF value) => new Size((int)value.Width, (int)value.Height);

Same methods

Size::Truncate ( System value ) : System.Drawing.Size

Usage Example

Esempio n. 1
0
 public Size ToSize()
 {
     return(Size.Truncate(this));
 }
All Usage Examples Of System.Drawing.Size::Truncate