[ { "matcher": "procedure TCB_IMGPSScanX.StatrTwainScan;", "tags": [ "ScannerController", "ScannerController.twainWrapper", "掃描相關" ], "deps": [ "OnAcquire", "Scanner", "Scanner.AcquireWithSourceOpen", "Scanner.CloseSource", "Scanner.OpenSource", "StatrTwainScan", "TTiffGraphic" ], "lIndex": "4390", "rIndex": "4443", "description": "啟動 TWAIN 掃描流程。檢查驅動是否安裝,初始化 ScanInfo 並設定 DPI、影像格式、UI 顯示及雙面掃描模式。執行 AcquireWithSourceOpen 並利用 try...finally 確保資源釋放。" }, { "matcher": "procedure TCB_IMGPSScanX.OnAcquire( const DibHandle : THandle;", "tags": [ "ScannerController", "ScannerController.twainWrapper", "掃描相關" ], "deps": [ "OnAcquire", "TJpegGraphic", "TTiffGraphic" ], "lIndex": "4444", "rIndex": "4683", "description": "掃描影像獲取後的回調處理。處理 DIB 句柄、設定 DPI、執行條碼辨識、影像旋轉、反向、去偏斜及清黑邊。支援 A3 裁切判定與空白頁過濾。" }, { "matcher": "procedure TCB_IMGPSScanX.PageDone;", "tags": [ "ScannerController", "ScannerController.twainWrapper", "掃描相關" ], "deps": [ "LoadFromFile", "PageDone" ], "lIndex": "4684", "rIndex": "4733", "description": "單頁影像處理後的 UI 更新。累加計數,根據模式(新建、取代、插入、取樣)將影像載入對應的顯示元件,並依設定調整反鋸齒與縮放。" }, { "matcher": "procedure TCB_IMGPSScanX.PageEnd;", "tags": [ "ScannerController", "ScannerController.twainWrapper", "掃描相關" ], "deps": [ "DirectoryExists", "GetNoNameCase", "PageEnd", "SaveToFile", "Str2Dir", "_DelTree" ], "lIndex": "4734", "rIndex": "4950", "description": "管理影像儲存路徑與命名。辨識條碼區分表單、導引頁或分案頁;處理分份邏輯與自動建立目錄,並更新樹狀結構索引。" }, { "matcher": "Procedure TCB_IMGPSScanX.R_W_Scanini(Mode:Char); //'R'讀取;'W'寫入", "tags": [ "ScannerController", "ScannerController.twainWrapper", "掃描相關" ], "deps": [ "Scanner" ], "lIndex": "5254", "rIndex": "5295", "description": "讀取或寫入 FBScan.ini。處理包含空白頁刪除、影像反向、清黑邊、旋轉、去偏斜、亮度對比及顯示模式等掃描參數。" }, { "matcher": "Procedure TCB_IMGPSScanX.GetDefScanIni; //取得掃瞄的預設值", "tags": [ "ScannerController", "ScannerController.twainWrapper", "掃描相關" ], "deps": [ "FJpgCompression", "Rotate", "Scanner" ], "lIndex": "5296", "rIndex": "5472", "description": "從資料庫參數清單初始化掃描預設值。設定 DPI、雙面模式、旋轉角度、路徑、導引頁及分案頁代碼等關鍵系統變數。" }, { "matcher": "procedure TCB_IMGPSScanX.initkscan;", "tags": [ "ScannerController", "ScannerController.twainWrapper" ], "deps": [ "Scanner", "Scanner.CloseSource", "Scanner.OpenSource", "initkscan" ], "lIndex": "9242", "rIndex": "9262", "description": "偵測掃描器硬體能力。嘗試開啟掃描來源以檢查是否支援雙面掃描 (DuplexCap),並據此啟用 UI 控制項。" } ]