In my application, which will be installed on a tablet or laptop, I need a command button which will take a photograph.
As I understand it, these photos will always automatically be stored in a specific folder. Is this possible? Is there someone who has done this and willing to share the source?
http://fox.wikis.com/wc.dll?Wiki~VideoCaptureApi
On 20 Oct 2016, at 22:37, Sytze de Boer <sytze.kiss@gmail.commailto:sytze.kiss@gmail.com> wrote:
In my application, which will be installed on a tablet or laptop, I need a command button which will take a photograph.
As I understand it, these photos will always automatically be stored in a specific folder. Is this possible? Is there someone who has done this and willing to share the source?
-- Kind regards, Sytze de Boer
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html ---
[excessive quoting removed by server]
If you have an image on a form similar to the situation in the link below then it is a relatively simple matter to use the API to define a rectangle and capture that as a bitmap image file. Also relatively easy to convert to other image formats using for example the offering in gdiplus. I am sure a number of other options exist too. So yes - possible.
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Chris Davis Sent: Friday, 21 October 2016 8:45 AM To: profoxtech@leafe.com Subject: Re: Command button to take a photo
http://fox.wikis.com/wc.dll?Wiki~VideoCaptureApi
On 20 Oct 2016, at 22:37, Sytze de Boer <sytze.kiss@gmail.commailto:sytze.kiss@gmail.com> wrote:
In my application, which will be installed on a tablet or laptop, I need a command button which will take a photograph.
As I understand it, these photos will always automatically be stored in a specific folder. Is this possible? Is there someone who has done this and willing to share the source?
-- Kind regards, Sytze de Boer
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html ---
[excessive quoting removed by server]
Hello Chris and Darren
I have not yet had time to check out your responses, but I want to thank you for the quick responses.
Do you think the process is the same for an in-built camera as it is for a usb camera?
On Fri, Oct 21, 2016 at 10:52 AM, Darren foxdev@ozemail.com.au wrote:
If you have an image on a form similar to the situation in the link below then it is a relatively simple matter to use the API to define a rectangle and capture that as a bitmap image file. Also relatively easy to convert to other image formats using for example the offering in gdiplus. I am sure a number of other options exist too. So yes - possible.
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Chris Davis Sent: Friday, 21 October 2016 8:45 AM To: profoxtech@leafe.com Subject: Re: Command button to take a photo
http://fox.wikis.com/wc.dll?Wiki~VideoCaptureApi
On 20 Oct 2016, at 22:37, Sytze de Boer <sytze.kiss@gmail.commailto:sytze.kiss@gmail.com> wrote:
In my application, which will be installed on a tablet or laptop, I need a command button which will take a photograph.
As I understand it, these photos will always automatically be stored in a specific folder. Is this possible? Is there someone who has done this and willing to share the source?
-- Kind regards, Sytze de Boer
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html
[excessive quoting removed by server]
Do you think the process is the same for an in-built camera as it is for a usb camera?
Yes, the process causes the same kind of headache for a built-in camera vs an external USB camera. Here is the summary of taking pictures in VFP from my sensor session last year:
CameraCaptureUi - Only available in Windows Store Apps
MediaCapture - Crashes, probably due to driver issue
TWAIN - Complicated, hard to get drivers
Windows Image Aqcuisition - Kind of works, but low resolution and camera keeps disappearing
HTML 5 getUserMedia - Works in Edge and Chrome, but can‘t easily embed those
TWAIN is covered in the article from Mile Lewis, Windows Image Acquisition is the news2news solution that is also on the FoxPro wiki. Using the camera application gives much better pictures, but zero control over the image taking process and picture location.
Heres another article http://www.ml-consult.co.uk/foxst-29.htm
Andrew Stirling
On 20/10/2016 22:44, Chris Davis wrote:
http://fox.wikis.com/wc.dll?Wiki~VideoCaptureApi
On 20 Oct 2016, at 22:37, Sytze de Boer <sytze.kiss@gmail.commailto:sytze.kiss@gmail.com> wrote:
In my application, which will be installed on a tablet or laptop, I need a command button which will take a photograph.
As I understand it, these photos will always automatically be stored in a specific folder. Is this possible? Is there someone who has done this and willing to share the source?
-- Kind regards, Sytze de Boer
--- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus
My experience with the API is hit and miss depending on the hardware.
I occasionally look for another solution.
On October 21, 2016 1:04:04 AM EDT, Andrew Stirling support@calcpay.co.uk wrote:
Heres another article http://www.ml-consult.co.uk/foxst-29.htm
Andrew Stirling
On 20/10/2016 22:44, Chris Davis wrote:
http://fox.wikis.com/wc.dll?Wiki~VideoCaptureApi
On 20 Oct 2016, at 22:37, Sytze de Boer
<sytze.kiss@gmail.commailto:sytze.kiss@gmail.com> wrote:
In my application, which will be installed on a tablet or laptop, I
need a
command button which will take a photograph.
As I understand it, these photos will always automatically be stored
in a
specific folder. Is this possible? Is there someone who has done this and willing to share the source?
-- Kind regards, Sytze de Boer