Page 1 of 1

Getting Scanners predefined resolutions

Posted: Fri Dec 12, 2008 9:24 pm
by albertocardoso
Hello.

Well I'm trying to get all the predefined resolutions of a scanner.
For example, my hp scanner has predefined resolutions (96/128/300/etc). I want to get those predefined resolutions and set them in a combobox.
The solution at this moment is a numeric up and down control that can capture values between the capMax and capMin of the device.

Bonus question!
Is there any way to filter the selects source to only show scanners and not cameras?

Thanks in advance

The very best,
Alberto

Re: Getting Scanners predefined resolutions

Posted: Tue Dec 16, 2008 11:27 am
by Alex
Hello Alberto,

Unfortunately, TWAIN doesn’t provide a direct way to know the device type. In most cases webcams support 24-bpp bit depth only.

And here is a list of capabilities, which are normally supported by webcams only:
- Flash
- Flash2
- ExposureTime
- BatteryMinutes
- BatteryPercentage
- CameraPreviewInterface
- PowerSupply
- ZoomFactor

Best regards, Alexander