using OTSCLRINTERFACE; using OTSCLRINTERFACE; using OTSDataType; using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OTSModelSharp.ServiceInterface { public class ScanController : IScanController { private OTSCLRINTERFACE.COTSControlFunExport scan; public ScanController() { } public CBSEImgClr AcquireBSEImage(int matrixIndex, int reads, int dwell) { Init(); CBSEImgClr bse = new CBSEImgClr(); scan.AcquireBSEImage(matrixIndex, reads, dwell, ref bse); return bse; } public bool Init() { this.scan = SemController.hw; return scan.ScanInit(); } public bool SetDwellTime(long val) { Init(); return scan.SetDwellTime((int)val); } public bool SetImageSize(int width,int height) { Init(); return scan.SetImageSize(width,height); } } }