SciChart.Drawing Assembly > System.Windows.Media.Imaging Namespace > WriteableBitmapExtensions Class > DrawTriangle Method : DrawTriangle(WriteableBitmap,Int32,Int32,Int32,Int32,Int32,Int32,Color) Method
The WriteableBitmap.
The x-coordinate of the 1st point.
The y-coordinate of the 1st point.
The x-coordinate of the 2nd point.
The y-coordinate of the 2nd point.
The x-coordinate of the 3rd point.
The y-coordinate of the 3rd point.
The color.
DrawTriangle(WriteableBitmap,Int32,Int32,Int32,Int32,Int32,Int32,Color) Method
Draws a triangle.
Syntax
[Extension()]
public static void DrawTriangle( 
   WriteableBitmap bmp,
   int x1,
   int y1,
   int x2,
   int y2,
   int x3,
   int y3,
   Color color
)

Parameters

bmp
The WriteableBitmap.
x1
The x-coordinate of the 1st point.
y1
The y-coordinate of the 1st point.
x2
The x-coordinate of the 2nd point.
y2
The y-coordinate of the 2nd point.
x3
The x-coordinate of the 3rd point.
y3
The y-coordinate of the 3rd point.
color
The color.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also