Table of Contents

Method DrawText

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

DrawText(SKCanvas, string, PointD, Font, Color, Color)

Draws text with the specified parameters.

public static void DrawText(this SKCanvas canvas, string s, PointD location, Font font, Color foreColor, Color backColor)

Parameters

canvas SKCanvas

Drawing context.

s string

Text string to draw.

location PointD

Location where text is drawn on the canvas.

font Font

Font.

foreColor Color

Foreground color.

backColor Color

Background color. Pass Empty to have transparent background under the text.