本文整理自网络,侵删。
从 FMX.Controls.TControl 继承下来的控件都可以调用一个函数 MakeScreenshot,返回 TBitmap。
所以 任意 fmx 控件 都可以使用此函数来截图。
如:截取 Button1 的图并在 Image1 上显示
procedure TForm1.Button1Click(Sender: TObject);begin Image1.Bitmap.Assign(Button1.MakeScreenshot());end;
来源:http://www.delphifmx.com/node/44
相关阅读 >>
Delphi xe5 中tmemo控件的应用――for android
Delphi 使用shellexecuteex运行应用程序并等待完成
Delphi mysql里Delphi事件类型转unix时间戳
更多相关阅读请进入《Delphi》频道 >>