RGBLedMatrix.DrawText Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for