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(); Rectangle r = new Rectangle(); CBSEImgClr bse = new CBSEImgClr(r); if (!scan.AcquireBSEImage(matrixIndex, reads, dwell, ref bse)) { return null; } 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); } } }