用Canvas.Pen.TextOut方法输出的文字都是水平排列的,有没有方法输出非水平排列的文字?比如:斜的
解决方案 »
- (二)11月19号结婚, 人生就只有一次. 狂放520分兄弟们抢分啦, 月底接贴.
- 小弟,跪求高首相助,!!
- 这个异常保护怎么写
- socketconnection 连接数限制问题及可否连接与Internet/intranet上?(在线等)
- 如何动态更新表格行的颜色 ???
- 还是不理论SQL2000的储存过程。
- 速求Office 2000的CD-key,谢谢!
- 请问有没有同VB中 for i=0 to 100 step .5 一样的语句?
- 怎么记录combobox的onchang前后的内容变化?
- 我刚学delphi,想编一个mp3和real的播放器。不知如何入手?请帮忙。
- 在窗体显示时不能关闲窗体吗?
- 小菜一碟——给初学者的例子——演示如何写DLL和调用它
unit Unit1;interfaceuses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;type
TForm1 = class(TForm)
Label1: TLabel;
procedure FormMouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.dfm}procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
var
LogFont : TLogFont;
theFont : TFont;
begin
with Form1.Canvas do
begin
{ 设置窗体画布的字体 }
Font.Name := 'Arial'; { 字体 }
Font.Size := 18; { 字号 }
Font.Color:= clBackground; { 颜色 }
{ 创建新字体 }
theFont := TFont.Create;
theFont.Assign(Font); { 新字体继承窗体画布字体的属性 }
{ 为新字体设置旋转属性 }
GetObject(theFont.Handle, sizeof(LogFont), @LogFont);
LogFont.lfEscapement:=450;{ 单位为(1/10)°}
LogFont.lfOrientation:=450;
theFont.Handle := CreateFontIndirect(LogFont);
Font.Assign(theFont);
theFont.Free ;
{ 使用新字体在鼠标按下的位置显示文字信息 }
TextOut(X,Y, '倾斜字体' ) ;
end;
end;end.