如何在 Delphi XE7 上的其他程序中执行 TTakePhotoFromCameraAction?

How to execute a TTakePhotoFromCameraAction in other procedure on Delphi XE7?

我想在其他程序中执行一个TTakePhotoFromCameraAction,但是我不能。 我测试了 TakePhotoFromCameraAction1.Execute、TakePhotoFromCameraAction1.ExecuteTarget,...,但没有成功。可能吗?

您无法执行,因为 TakePhotoFromCameraAction1.Enabled = False。

请检查此样本http://docwiki.embarcadero.com/RADStudio/XE8/en/Taking_Pictures_Using_FireMonkey_Interfaces

首先:确保您可以使用相机。