开发者

How to output a rotated text in C# form application?

开发者 https://www.devze.com 2022-12-27 22:58 出处:网络
I\'m writing a c# form application and i want to draw a scale and write some rotated values under i开发者_开发问答t,is there any way to do this?You will need to custom draw using the Graphics class. I

I'm writing a c# form application and i want to draw a scale and write some rotated values under i开发者_开发问答t,is there any way to do this?


You will need to custom draw using the Graphics class. I assume you have some idea how to do that but if not that's a whole other question on its own involving OnPaint overrides and such. You can then use the Graphics class's RotateTransform method and draw the text.

A Bob Powell article about text rotation.

0

精彩评论

暂无评论...
验证码 换一张
取 消