| DebugRendererDrawText Method (StringBuilder, Vector2F, Vector2F, Color) |
Draws a text on a 2D position in screen space.
Namespace: DigitalRune.Graphics.RenderingAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax public void DrawText(
StringBuilder text,
Vector2F position,
Vector2F relativeOrigin,
Color color
)
Public Sub DrawText (
text As StringBuilder,
position As Vector2F,
relativeOrigin As Vector2F,
color As Color
)
public:
void DrawText(
StringBuilder^ text,
Vector2F position,
Vector2F relativeOrigin,
Color color
)
member DrawText :
text : StringBuilder *
position : Vector2F *
relativeOrigin : Vector2F *
color : Color -> unit
Parameters
- text
- Type: System.TextStringBuilder
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