twain / twain-cs

A C# interface for TWAIN
168 stars 67 forks source link

send DPI and Page size [sf#13] #17

Closed kolomiets closed 7 years ago

kolomiets commented 7 years ago

Reported by ahmadalqadi on 2015-10-08 07:04 UTC How can i send parameters dpi , page size , source type(ADF,FlatBed).

kolomiets commented 7 years ago

Updated by mlmcl on 2015-10-17 17:20 UTC

kolomiets commented 7 years ago

Commented by mlmcl on 2015-10-17 17:20 UTC This is a little vague. If you're using the twaincsscan app, then you'll probably be best off using the driver UI built into the vendor's TWAIN driver. If it supports DAT_CUSTOMDSDATA, then you can save snapshots of your changes, and use those when you want to scan.

If you're looking to program with TWAIN CS, then I recommend running the twaincstst app. Once you've opened the driver you want to use, try selecting DG_CONTROL / DAT_CAPABILITY / MSG_GETCURRENT for ICAP_XRESOLUTION, ICAP_SUPPORTEDSIZES and CAP_FEEDERENABLED. The data returned is a CSV representation of the underlying TWAIN structures.

You can refer to the TWAIN Specification at twain.org for more information about those structures.