Like I wrote in the title, I want to take pictures from a Windows tablet, but do not found how do it.
Firemonkey is supposed to allow the multi-platform development, but everything I found to take pictures is working only on Android and iOS.
The sample given by Embarcadero here does not works on Windows, it appears that Windows do not recognize the event TakePhotoFromCameraAction1
because any button with this action does not appears on the form.
I also tried this one, and 2 others called CameraComponent
and WebcamExample
, I do not remember where I found them, but nothing works.
I thought to try to access directly to the Windows' Camera application, like as the first answer here for the touch keyboard, but I do not found the .exe.
I am using Delphi XE8, and the target platform is Win32. Can someone help me on it ?
The device is the Fieldbook K80 : logic-instrument.com/en/fieldbook-k80.php
I found a way to use the Windows Camera, perhaps someone else may be interested. I execute a Windows command to launch the camera app thanks to the library Winapi.ShellAPI :
ShellExecute(0, 'OPEN', PChar('microsoft.windows.camera:'), '', '', 1);
Thanks to this post in C# : Run Camera App of Windows 10 from Desktop Application