ScanController.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using OTSCLRINTERFACE;
  2. using OTSCLRINTERFACE;
  3. using OTSDataType;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Drawing;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace OTSModelSharp.ServiceInterface
  11. {
  12. public class ScanController : IScanController
  13. {
  14. private OTSCLRINTERFACE.COTSControlFunExport scan;
  15. public ScanController()
  16. {
  17. this.scan = SemController.hw;
  18. }
  19. public CBSEImgClr AcquireBSEImage(int matrixIndex, int reads, int dwell)
  20. {
  21. CBSEImgClr bse = new CBSEImgClr();
  22. scan.AcquireBSEImage(matrixIndex, reads, dwell, ref bse);
  23. return bse;
  24. }
  25. public bool Init()
  26. {
  27. return scan.ScanInit();
  28. }
  29. public bool SetDwellTime(long val)
  30. {
  31. return scan.SetDwellTime((int)val);
  32. }
  33. public bool SetImageSize(int width,int height)
  34. {
  35. return scan.SetImageSize(width,height);
  36. }
  37. }
  38. }