Getting scanner settings

Discussions about TWAIN & WIA scanning in GdPicture.NET using GdPictureImaging.
Post Reply
JeanK
Posts: 1
Joined: Fri Feb 18, 2011 3:09 pm

Getting scanner settings

Post by JeanK » Fri Feb 18, 2011 3:11 pm

In my program, I want to allow users to turn off the scanner's interface, but I'd like the program to use the settings already in place on the scanner for resolution, bitdepth, pixeltype, etc. Basically, I want the user to be able to use the scanner's interface to make selections, but not have to go through that interface with each subsequent scan.

I've tried just the TwainGetCurrentResolution, (TW-Brother DCP-7020 USB) and all I ever get back is a value of 100, no matter what the scanner's settings actually are. Is there something I'm missing here? If this is not a reliable method, is there a better one?

What I'd love as a workaround is a simple 3-level quality selection (low, better, best) that makes settings for either pdf or image, but I don't know enough about this sort of thing to even know what those settings should be.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Getting scanner settings

Post by Loïc » Wed Feb 23, 2011 5:17 pm

Hi,

TwainGetCurrentResolution is the good method to get the current resolution.
Unfortunately some non 100% TWAIN complaint driver returns false values. And you can't do anything for that excepted trying another TWAIN driver.

Kind regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests