本文整理自网络,侵删。
unit Unit1; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.Objects, FMX.Controls.Presentation, FMX.StdCtrls; type TForm1 = class(TForm) Button1: TButton; Image1: TImage; procedure Button1Click(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; implementation {$R *.fmx} procedure TForm1.Button1Click(Sender: TObject);var Rect: TRectF;begin Rect.Create(0, 0, 500, 300); Image1.Bitmap.Canvas.BeginScene; Image1.Bitmap.Canvas.Font.Family:='宋体'; Image1.Bitmap.Canvas.Font.Size:=80; Image1.Bitmap.Canvas.Fill.Color:=TAlphaColors.Red; Image1.Bitmap.Canvas.FillText(Rect, '我是LQEN', False, 1, [], TTextAlign.Center, TTextAlign.Center ); Image1.Bitmap.Canvas.EndScene;end; end.
――――――――――――――――
原文链接:https://blog.csdn.net/lqena/article/details/78732313
相关阅读 >>
Delphi win32_networkadapter 网卡 参数说明
Delphi下用cdo发送邮箱实例(授权码cdo发送邮箱的解决办法)
Delphi研究之驱动开发篇(六)--利用section与用户模式程序通讯(上)
Delphi 请求时间,为当前时间,数值为1970-01-01以来的毫秒数
Delphi 的webbrowser如何全选并复制浏览器上的文字
Delphi 使用shgetfileinfo函数获取任何文件大图标
更多相关阅读请进入《Delphi》频道 >>