Click or drag to resize
DigitalRuneDebugRendererDrawText Method (String, Vector2F, Vector2F, Color)
Draws a text on a 2D position in screen space.

Namespace: DigitalRune.Graphics.Rendering
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public void DrawText(
	string text,
	Vector2F position,
	Vector2F relativeOrigin,
	Color color
)

Parameters

text
Type: SystemString
The text.
position
Type: DigitalRune.Mathematics.AlgebraVector2F
The position in screen space (measured in pixels).
relativeOrigin
Type: DigitalRune.Mathematics.AlgebraVector2F
The relative origin of the text. (0, 0) means that the upper-left corner of the text is at position; (1, 1) means that the lower-right corner of the text is at position. Use (0.5, 0.5) to center the text.
color
Type: Color
The color.
See Also