English 中文(简体)
印刷版
原标题:
  • 时间:2009-06-05 11:13:32
  •  标签:

我正在利用印刷文件印刷一个网页。 在某个时候,我想轮流阅读90度文本,垂直印刷。 任何想法?

g. 网上翻译(90);

OnPaint没有工作。

最佳回答

当你打电话给Rotate Transform时,你需要注意协调制度何时结束。 如果你执行以下法规,“租赁案文”将出现在左边左边的左边;因此,这并不明显:

e.Graphics.Clear(SystemColors.Control);
e.Graphics.DrawString("Normal text", this.Font, SystemBrushes.ControlText, 10, 10);
e.Graphics.RotateTransform(90);
e.Graphics.DrawString("Tilted text", this.Font, SystemBrushes.ControlText, 10, 10);

由于你利用了90摄像机(24英寸),因此,现在将沿着正确的/单轴(从你的角度)而不是上下。 左边还有很多。 为了将斜线案文移至表面可见部分,你需要减少和协调:

e.Graphics.Clear(SystemColors.Control);
e.Graphics.DrawString("Normal text", this.Font, SystemBrushes.ControlText, 10, 10);
e.Graphics.RotateTransform(90);
e.Graphics.DrawString("Tilted text", this.Font, SystemBrushes.ControlText, 10, -40);

否则,协调制度在表面上左上角,从而成为罗特·Transform的轴心。

这里是一个形象说明的图像;黑色以前被叫到罗特·Transform,红色是在叫罗特·Transform(35):

“Diagram”/

问题回答

暂无回答




相关问题
热门标签