Jump to content

Drawing text help

Recommended Posts

I'm having difficulty understanding the coordinate system and text size when using the Rage Graphics class to draw text. Can anyone give me pointers on properly drawing text at the top-right corner of the screen?

Share this post

Link to post
Share on other sites

It's very easy.


Game.RawFrameRender += RenderDisplay;

private void RenderDisplay(object sender, GraphicsEventArgs e)
	e.Graphics.DrawText("Your text here", "Arial", 28.0f, new PointF(10f, 100f), Color.FromArgb(255, 255, 255));


Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...