specific area scanning by Delphi twain

柔情痞子 提交于 2019-12-11 22:15:15

问题


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:


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.



来源:https://stackoverflow.com/questions/4536227/specific-area-scanning-by-delphi-twain

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!