specific area scanning by Delphi twain

2019-09-09 13:11发布

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.

1条回答
Deceive 欺骗
2楼-- · 2019-09-09 13:47

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.

查看更多
登录 后发表回答