Link to home
Start Free TrialLog in
Avatar of Mike Jacobs
Mike JacobsFlag for United Kingdom of Great Britain and Northern Ireland

asked on

VIDEO DATASOURCE Control Resize issue

I'm writing a desktop application, in Visual Foxpro, which prompts users to take a web-cam snapshot of documents(and, occasionally, faces).

The code I'm using is based on code I first wrote back in 2008 where it worked perfectly. But "improvements" to Windoze, in particular Microsoft's withdrawal from proper Twain support, have rendered it virtually impossible and you cannot find simple solutions to what ought to be a simple problem anywhere online. Even the expensive solutions don't fully solve the problem.

The most reliable method I have found (so far) uses Dosadi's Eztwain, as described (by Mike Lewis) here: http://www.ml-consult.co.uk/foxst-29.htm

This (and nearly all the other solutions I have tried) all invoke the Microsoft WDM Image Capture control to allow the user to capture an image.

This works but has two limitations, one serious (resolution limited to 640x480) and one irritating.

While I'd be happy to see a solution to the resolution issue, it is not my priority because, for the time being, I can actually work with 640x480 images.

What I'm seeking help for today, is the irritating problem caused by the need to resize the form before the user has any realistic chance of seeing, properly, what it is they're trying to photograph and whether or not it's in focus.

The problem arises because, on a 1080p monitor, running at that resolution, which is, today, fairly typical, the WDM appears on screen with the image control at around 50x35 mm (on my 24" monitor at least) and that's far too small to work with, so the first thing the user is forced to do is resize the form to get the image big enough to work with.

This much was also true in the first version of the software back in 2008. But back then, all we had to do, on each workstation, was resize the capture control once and the windows registry (presumably) would remember it, even after reboots. Now it won't remember it even between successive image captures

I'm guessing/hoping that there are either registry keys or a secret ini file somewhere which would allow me to set the form size programatically and allow the the user just to manipulate the document into position and press Return to capture the image.

Does anyone know of such settings? or, if not, an inexpensive alternative capture control which would solve the problem (even better if it can also handle the higher resolution)
ASKER CERTIFIED SOLUTION
Avatar of Mike Jacobs
Mike Jacobs
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mike Jacobs

ASKER

Solution unsatisfactory but it works well enough for what I currently need