Method Round
Round(Point, Size)
Rounds given point.
public static Point Round(Point point, Size pixelSize)
Parameters
point
PointSpecifies
System.Windows.Point
to round.pixelSize
SizeSpecifies
System.Windows.Size
on which divided given point.
Returns
- Point
Rounded
System.Windows.Point
after division by pixelSize.
Round(Rect, Size)
Rounds given rectangle.
public static Rect Round(Rect rect, Size pixelSize)
Parameters
rect
RectSpecifies
System.Windows.Rect
to round.pixelSize
SizeSpecifies
System.Windows.Size
on which divided given rect.
Returns
- Rect
Rounded
System.Windows.Rect
after division by pixelSize.
Round(double, double)
Rounds given value.
public static double Round(double value, double pixelSize)
Parameters
value
doubleSpecifies a double value to round.
pixelSize
doubleSpecifies
System.Windows.Size
on which divided given value.
Returns
- double
Rounded value after division by pixelSize.