How to use DrawString to position text
-
Hello- I am currently using the Graphics.DrawString method to write text on the screen. I am using the StringFormatFlags.DirectionVertical in order to display a "banner" of text on the right hand side of the screen. The problem I am faced with is the text is in the opposite direction of what I am looking for. I am not really sure how to word this... The way the string shows up now with the DirectionVertical flag is if you turned your head 90 degrees to the right, the text would be legible. If you turned your head 90 degrees to the left, the text would be upside down. I am trying to use the DrawString method to make it so the text is in the opposite direction. If you turn your head 90 degrees to the LEFT, the text would be legible, 90 degrees to the RIGHT it would appear upside down. I basically want to "flip" the text 180 degrees. My english is weak hopefully I explained properly. Thank you so much in advance
-
Hello- I am currently using the Graphics.DrawString method to write text on the screen. I am using the StringFormatFlags.DirectionVertical in order to display a "banner" of text on the right hand side of the screen. The problem I am faced with is the text is in the opposite direction of what I am looking for. I am not really sure how to word this... The way the string shows up now with the DirectionVertical flag is if you turned your head 90 degrees to the right, the text would be legible. If you turned your head 90 degrees to the left, the text would be upside down. I am trying to use the DrawString method to make it so the text is in the opposite direction. If you turn your head 90 degrees to the LEFT, the text would be legible, 90 degrees to the RIGHT it would appear upside down. I basically want to "flip" the text 180 degrees. My english is weak hopefully I explained properly. Thank you so much in advance
I suspect you can achieve this by using a
RotateTransform
.Deja View - the feeling that you've seen this post before.
-
Hello- I am currently using the Graphics.DrawString method to write text on the screen. I am using the StringFormatFlags.DirectionVertical in order to display a "banner" of text on the right hand side of the screen. The problem I am faced with is the text is in the opposite direction of what I am looking for. I am not really sure how to word this... The way the string shows up now with the DirectionVertical flag is if you turned your head 90 degrees to the right, the text would be legible. If you turned your head 90 degrees to the left, the text would be upside down. I am trying to use the DrawString method to make it so the text is in the opposite direction. If you turn your head 90 degrees to the LEFT, the text would be legible, 90 degrees to the RIGHT it would appear upside down. I basically want to "flip" the text 180 degrees. My english is weak hopefully I explained properly. Thank you so much in advance
try to use this... save your drawing like an image and the apply the flip image.RotateFlip(RotateFlipType.Rotate180FlipX); change the RotateFlipType in order to solve exactly your problem.. :cool:
luisnike19