如何在dwtcontrolContainer
div 中调整扫描图像的大小?因为当我向下滚动屏幕时,所选区域永远不会跟随鼠标并选择鼠标单击上方的区域。
波纹管是我的AcquireImage
功能:
function AcquireImage() {
try {
if (DWObject) {
var _obj = {};
_obj.IfShowUI = false;
_obj.PixelType = 0;
_obj.Resolution = 300;
_obj.IfFeederEnabled = true;
_obj.IfDuplexEnabled = false;
_obj.IfDisableSourceAfterAcquire = true; // Scanner source will be disabled/closed automatically after the scan.
_obj.Brightness = 10000;
_obj.MaxImagesInBuffer = 3;
_obj.PageSize = 0;
_obj.Contrast = 1000;
DWObject.SelectSourceByIndex(document.getElementById("rdlScanner").selectedIndex);
DWObject.OpenSource();
DWObject.AcquireImage(_obj);
DWObject.SetViewMode(-1, -1);
DWObject.CurrentImageIndexInBuffer = 0;
updatePageInfo();
}
}
catch (err) {
alert("Error: " + err.message);
}
}
我发现http://developer.dynamsoft.com/dwt/dynamic-web-twain-how-to-resize-the-viewer-automatically但即使配置 .jsdynamsoft.webtwain.config.js
也不起作用