System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawTriangle C# (CSharp) Метод

DrawTriangle() публичный статический Метод

Draws a triangle.
public static DrawTriangle ( this bmp, int x1, int y1, int x2, int y2, int x3, int y3, Color color ) : void
bmp this The WriteableBitmap.
x1 int The x-coordinate of the 1st point.
y1 int The y-coordinate of the 1st point.
x2 int The x-coordinate of the 2nd point.
y2 int The y-coordinate of the 2nd point.
x3 int The x-coordinate of the 3rd point.
y3 int The y-coordinate of the 3rd point.
color Color The color.
Результат void
        public static void DrawTriangle(this WriteableBitmap bmp, int x1, int y1, int x2, int y2, int x3, int y3, Color color)
        {
            var col = ConvertColor(color);
            bmp.DrawTriangle(x1, y1, x2, y2, x3, y3, col);
        }

Same methods

WriteableBitmapExtensions::DrawTriangle ( this bmp, int x1, int y1, int x2, int y2, int x3, int y3, int color ) : void