Ejemplo n.º 1
0
 /// <summary>
 /// Draws a polyline. Add the first point also at the end of the array if the line should be closed.
 /// </summary>
 /// <param name="bmp">The WriteableBitmap.</param>
 /// <param name="points">The points of the polyline in x and y pairs, therefore the array is interpreted as (x1, y1, x2, y2, ..., xn, yn).</param>
 /// <param name="color">The color for the line.</param>
 public static void DrawPolylineAa(this BitmapBuffer bmp, int[] points, ColorInt color)
 {
     bmp.DrawPolylineAa(points, color.ToPreMultAlphaColor());
 }