Getting Scanners predefined resolutions

Questions, comments and suggestions concerning VintaSoft Twain .NET SDK.

Moderator: Alex

Post Reply
albertocardoso
Posts: 1
Joined: Fri Dec 12, 2008 9:17 pm

Getting Scanners predefined resolutions

Post 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
Alex
Site Admin
Posts: 2305
Joined: Thu Jul 10, 2008 2:21 pm

Re: Getting Scanners predefined resolutions

Post 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
Post Reply