SciChart.Drawing Assembly > System.Windows.Media.Imaging Namespace > WriteableBitmapExtensions Class > FillRectangle Method : FillRectangle(WriteableBitmap,Int32,Int32,Int32,Int32,Color) Method
The WriteableBitmap.
The x-coordinate of the bounding rectangle's left side.
The y-coordinate of the bounding rectangle's top side.
The x-coordinate of the bounding rectangle's right side.
The y-coordinate of the bounding rectangle's bottom side.
The color.
FillRectangle(WriteableBitmap,Int32,Int32,Int32,Int32,Color) Method
Draws a filled rectangle using WriteableBitmapExtensions.BlendMode.Alpha. x2 has to be greater than x1 and y2 has to be greater than y1.
Syntax
[Extension()]
public static void FillRectangle( 
   WriteableBitmap bmp,
   int x1,
   int y1,
   int x2,
   int y2,
   Color color
)

Parameters

bmp
The WriteableBitmap.
x1
The x-coordinate of the bounding rectangle's left side.
y1
The y-coordinate of the bounding rectangle's top side.
x2
The x-coordinate of the bounding rectangle's right side.
y2
The y-coordinate of the bounding rectangle's bottom side.
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