Jump to content
Xtreme .Net Talk

Recommended Posts

  • *Experts*
Posted

Maybe you could post a code-snippet to help out anyone else with the same problem?

 

-ner

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Posted

Here is the code snippet to rotate text:

 

Dim G As System.Drawing.Graphics = panel1.CreateGraphics()

'Change the origin to the new point (100,100) of rotation (top left corner of the text to be rotated)

G.TranslateTransform(100, 100)

'Perform rotation by 270 degrees

G.RotateTransform(270)

'Write text (in string 'Title') using font 'TitleFont' and brush 'TitleBrush' at the new origin

G.DrawString(Title, TitleFont, TitleBrush, 0, 0)

Join the conversation

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

Guest
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...