Edit

Share via


RGBLedMatrix.DrawText Method

Definition

Overloads

DrawText(Int32, Int32, ReadOnlySpan<Char>, BdfFont, Byte, Byte, Byte, Byte, Byte, Byte, Boolean)

Draws text on the display at a specified position

DrawText(Int32, Int32, String, BdfFont, Byte, Byte, Byte, Byte, Byte, Byte, Boolean)

Write a text at specific position to the display using the input font and the colors

DrawText(Int32, Int32, ReadOnlySpan<Char>, BdfFont, Byte, Byte, Byte, Byte, Byte, Byte, Boolean)

Draws text on the display at a specified position

public void DrawText (int x, int y, ReadOnlySpan<char> text, Iot.Device.Graphics.BdfFont font, byte textR, byte textG, byte textB, byte bkR, byte bkG, byte bkB, bool backBuffer = false);
member this.DrawText : int * int * ReadOnlySpan<char> * Iot.Device.Graphics.BdfFont * byte * byte * byte * byte * byte * byte * bool -> unit
Public Sub DrawText (x As Integer, y As Integer, text As ReadOnlySpan(Of Char), font As BdfFont, textR As Byte, textG As Byte, textB As Byte, bkR As Byte, bkG As Byte, bkB As Byte, Optional backBuffer As Boolean = false)

Parameters

x
Int32

X coordinate of the text position

y
Int32

Y coordinate of the text position

text
ReadOnlySpan<Char>

Text to draw

font
BdfFont

Font to use to draw the text

textR
Byte

Red channel of the text color

textG
Byte

Green channel of the text color

textB
Byte

Blue channel of the text color

bkR
Byte

Red channel of the text background

bkG
Byte

Green channel of the text background

bkB
Byte

Blue channel of the text background

backBuffer
Boolean

Set to true if drawing on the backing buffer. Defaults to false.

Applies to

DrawText(Int32, Int32, String, BdfFont, Byte, Byte, Byte, Byte, Byte, Byte, Boolean)

Write a text at specific position to the display using the input font and the colors

public void DrawText (int x, int y, string text, Iot.Device.Graphics.BdfFont font, byte textR, byte textG, byte textB, byte bkR, byte bkG, byte bkB, bool backBuffer = false);
member this.DrawText : int * int * string * Iot.Device.Graphics.BdfFont * byte * byte * byte * byte * byte * byte * bool -> unit
Public Sub DrawText (x As Integer, y As Integer, text As String, font As BdfFont, textR As Byte, textG As Byte, textB As Byte, bkR As Byte, bkG As Byte, bkB As Byte, Optional backBuffer As Boolean = false)

Parameters

x
Int32

Upper left x coordinate to start drawing the text at

y
Int32

Upper left y coordinate to start drawing the text at

text
String

The text to draw

font
BdfFont

The drawing font

textR
Byte

text red color

textG
Byte

text green color

textB
Byte

text blue color

bkR
Byte

text background red color

bkG
Byte

text background green color

bkB
Byte

text background blue color

backBuffer
Boolean

true if want use back buffer, false otherwise

Applies to