Edit

Share via


RGBLedMatrix.FillRectangle Method

Definition

Fill a rectangle on the display with specific color

public void FillRectangle (int x, int y, int width, int height, byte red, byte green, byte blue, bool backBuffer = false);
member this.FillRectangle : int * int * int * int * byte * byte * byte * bool -> unit
Public Sub FillRectangle (x As Integer, y As Integer, width As Integer, height As Integer, red As Byte, green As Byte, blue As Byte, Optional backBuffer As Boolean = false)

Parameters

x
Int32

Upper left rectangle x coordinate

y
Int32

Upper left rectangle y coordinate

width
Int32

The rectangle width

height
Int32

The rectangle height

red
Byte

red color value

green
Byte

green color value

blue
Byte

blue color value

backBuffer
Boolean

true if to draw on back buffer, false to draw on the forground buffer

Applies to