用法:TextOut(X, Y: Integer; const Text: string);X轴的:TextOut(20, Height div 2, 'Rotated Text!');Y轴的是你的Y保持不变,把X做操作;也就是TextOut(Left div 2,20 'Rotated Text!');
解决方案 »
- 100分求解:如何实现cmd命令控制台? (注意审题)
- 我刚开始学组建编程,请问 .bpl, .bpk, .ocx各是什么文件啊?有什么作用 ?
- 各位大虾,请教如何将dbchart的图表输出到word 或者 excel当中?(在线等待中....)
- 请问在delphi中如何调用CopyAFile等Win32函数,请高手指点!!!急!!!
- Table的apllyupdates有问题啊?总是at end of table
- 应该有办发的只是我不董。。。
- delphi 动态菜单要从数据库中获取
- delphi中调用Winrar后怎样等待其解压完成后再向下执行?
- 我想找一些用于按钮的bmp图片,请问大家那里有这样的图片可下栽??
- 如何在TAdoquery中动态使用带参数的SQL语句?
- 为什么自定义过程,出错。说[Error] Unit2.pas(29): Undeclared identifier: 'NMFTP1'unit Unit2;
- 为什么用Delphi编写的数据库程序没有BDE就不能运行?
var
lf : TLogFont;
tf : TFont;
begin
with Form1.Canvas do begin
Font.Name := 'Arial';
Font.Size := 24;
tf := TFont.Create;
tf.Assign(Font);
GetObject(tf.Handle, sizeof(lf), @lf);
lf.lfEscapement := 450;//与X轴的夹角
lf.lfOrientation := 450;;//与Y轴的夹角
tf.Handle := CreateFontIndirect(lf);
Font.Assign(tf);
tf.Free;
TextOut(20, Height div 2, 'Rotated Text!');
end;
end;
lf.lfOrientation :=100