Mah*_*eep 13
你将不得不使用PushTransform和类的Pop方法DrawingContext.
DrawingContext dc; // Initialize this correct value
RotateTransform RT = new RotateTransform();
RT.Angle = 90
dc.PushTransform(RT)
dc.DrawText(...);
dc.Pop();
Run Code Online (Sandbox Code Playgroud)
DrawingContext dc;
Point textLocation
var RT = new RotationTransform(-90.0);
// You should transform the location likewise...
location = new Point(-location.Y, location.X);
dc.PushTransform(RT);
dc.DrawText(formattedText, location);
Run Code Online (Sandbox Code Playgroud)
抱歉,我不得不发布此消息,因为我将头撞在墙上十五分钟,试图找出答案。我不想让其他人经历那件事。
| 归档时间: |
|
| 查看次数: |
7079 次 |
| 最近记录: |