Beispiel #1
0
 public void AddRectangle(PointD location, SizeD size) => AddRectangle(location.X, location.Y, size.Width, size.Height);
Beispiel #2
0
 public void ArcTo(PointD center, double radius, double startAngle, double sweep, bool negative) => ArcTo(center.X, center.Y, radius, startAngle, sweep, negative);
Beispiel #3
0
 public void BezierTo(PointD c1, PointD c2, PointD end) => BezierTo(c1.X, c1.Y, c2.X, c2.Y, end.X, end.Y);
Beispiel #4
0
 public void NewFigureWithArc(PointD center, double radius, double startAngle, double sweep, bool negative) => NewFigureWithArc(center.X, center.Y, radius, startAngle, sweep, negative);
Beispiel #5
0
 public void LineTo(PointD point) => LineTo(point.X, point.Y);
Beispiel #6
0
 public void NewFigure(PointD point) => NewFigure(point.X, point.Y);
Beispiel #7
0
 /// <summary>
 /// Converts the specified <see cref="PointD"/> to a <see cref="Point"/> by rounding the values of the <see cref="PointD"/> to the next higher integer values.
 /// </summary>
 /// <param name="val">The <see cref="PointD"/> to convert.</param>
 /// <returns>The <see cref="Point"/> this method converts to.</returns>
 public static Point Ceiling(PointD val) => new Point((int)Math.Ceiling(val.X), (int)Math.Ceiling(val.Y));
Beispiel #8
0
 /// <summary>
 /// Converts the specified <see cref="PointD"/> to a <see cref="Point"/> by truncating the values of the <see cref="PointD"/>.
 /// </summary>
 /// <param name="val">The <see cref="PointD"/> to convert.</param>
 /// <returns>The <see cref="Point"/> this converts to.</returns>
 public static Point Truncate(PointD val) => new Point((int)Math.Truncate(val.X), (int)Math.Truncate(val.Y));
Beispiel #9
0
 /// <summary>
 /// Converts the specified <see cref="PointD"/> to a <see cref="Point"/> by rounding the values of the <see cref="PointD"/> to the nearest integer.
 /// </summary>
 /// <param name="val">The <see cref="PointD"/> to convert.</param>
 /// <returns>The <see cref="Point"/> this method converts to.</returns>
 public static Point Round(PointD val) => new Point((int)Math.Round(val.X), (int)Math.Round(val.Y));
Beispiel #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RectangleD"/> class with the specified location and size.
 /// </summary>
 /// <param name="location">A <see cref="Point"/> that represents the upper-left corner of the rectangle.</param>
 /// <param name="size">A <see cref="Drawing.Size"/> that represents the width and height of the rectangle.</param>
 public RectangleD(PointD location, SizeD size) : this(location.X, location.Y, size.Width, size.Height)
 {
 }