当前位置:首页 > 网络编程 > 软件语言 > DELPHI > 以任意角度显示文字

以任意角度显示文字

点击次数:69 次 发布日期:2008-11-09 08:42:01 作者:源代码网
源代码网推荐
广告载入中
var
源代码网推荐 LogFont: TLogFont;
源代码网推荐 theFont: TFont;
源代码网推荐 begin
源代码网推荐 with Form1.Canvas do
源代码网推荐 begin
源代码网推荐 Font.Name := "宋体";
源代码网推荐 Font.Size := 18;
源代码网推荐 Font.Color := clYellow;
源代码网推荐 theFont := TFont.Create;
源代码网推荐 theFont.Assign( Font );
源代码网推荐 GetObject( theFont.Handle, Sizeof(LogFont), @LogFont );
源代码网推荐 LogFont.lfEscapement := 450; // 45度
源代码网推荐 LogFont.lfOrientation := 450; // 45度
源代码网推荐 theFont.Handle := CreateFontIndirect( LogFont );
源代码网推荐 Font.Assign( theFont );
源代码网推荐 theFont.Free;
源代码网推荐 TextOut( X, Y, "Hello!" );
源代码网推荐 end;
源代码网推荐 end;


源代码网推荐

源代码网供稿.
网友评论 (0)
会员中心
网络编程
本站推荐
网络编程之精华