Method DrawHelloText
DrawHelloText(SKCanvas, string?, PointD?, Font?, Color?, Color?)
Draws the specified test message on the canvas at the given location, using default styling if no parameters are provided.
public static void DrawHelloText(this SKCanvas canvas, string? text = null, PointD? location = null, Font? font = null, Color? foreColor = null, Color? backColor = null)
Parameters
canvasSKCanvasThe SKCanvas on which the text will be drawn. Cannot be null.
textstringThe text to draw. If null, the default text "Hello from SkiaSharp" will be used.
locationPointD?The location where the text will be drawn, specified as a PointD. If null, the default location (10, 10) will be used.
fontFontThe Font to use for drawing the text. Can be
nullif the default font is desired.foreColorColorThe Color to use for the text foreground. Can be
nullif the default color is desired.backColorColorThe Color to use for the text background. Can be
nullif the default color is desired.
Remarks
This method uses default font and color settings to render the text. The text is drawn with a green foreground and a yellow background.