Gizmo001 Posted December 30, 2002 Posted December 30, 2002 How do you rotate text written with drawstring on a form/panel/picturebox? Quote
Gizmo001 Posted December 30, 2002 Author Posted December 30, 2002 Never mind. I have solved this issue. Thanks Quote
*Experts* Nerseus Posted December 31, 2002 *Experts* Posted December 31, 2002 Maybe you could post a code-snippet to help out anyone else with the same problem? -ner Quote "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
Gizmo001 Posted December 31, 2002 Author Posted December 31, 2002 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) Quote
Gizmo001 Posted December 31, 2002 Author Posted December 31, 2002 Volte Face: That was a nice description of the application of smoothing. Thanks. Quote
*Experts* Volte Posted December 31, 2002 *Experts* Posted December 31, 2002 Don't thank me, thank divil. He's the one who made the article. :) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.