Sign in to follow this  
Kevin31

[SlimDX] Set Position of Text in DirectWrite

Recommended Posts

Hi, I've taken a look to DirectWrite, and it seems to be very powerful but also more difficult to use... The text I'm writing is aligned, but how can I put text at an arbitary Position, is this possible? How can I put for example the framerate in the upper-left corner? Thanks in advance.

Share this post


Link to post
Share on other sites
You use a transformation matrix, in this case a 3x2 matrix, which allows for rotation and translation.

See ID2D1RenderTarget::SetTransform.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this