简体   繁体   中英

specific area scanning by Delphi twain

How i can determine the x,y start and the x,y end of scanning using the Delphi twain library ?

Also How i can set dpi for scan a document.

Thanks.

AFAIK, for setting a region to be scanned, you can use TTwainSource.SetImageLayoutFramework method. TDelphiTwain.Source returns available Twain sources.

For DPI, I guess you should first set CapUnits to tuInches using TTwainSource.SetICapUnits method. Then you can set DPI by calling TTwainSource.SetIXResolution and TTwainSource.SetIYResolution methods.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM