Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用Delphi twain 库确定扫描的 x,y 开始和 x,y 结束?
另外我如何设置 dpi 来扫描文档。
谢谢。
AFAIK,用于设置要扫描的区域,您可以使用TTwainSource.SetImageLayoutFramework方法。TDelphiTwain.Source返回可用的吐温源。
TTwainSource.SetImageLayoutFramework
TDelphiTwain.Source
对于 DPI,我想您应该首先使用方法将 CapUnits 设置为 tuInches TTwainSource.SetICapUnits。TTwainSource.SetIXResolution然后你可以通过调用和TTwainSource.SetIYResolution方法来设置DPI 。
TTwainSource.SetICapUnits
TTwainSource.SetIXResolution
TTwainSource.SetIYResolution