HObjectWithColor.cs 697 B

123456789101112131415161718192021222324252627282930313233343536
  1. using HalconDotNet;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. namespace ViewROI.Config
  7. {
  8. /// <summary>
  9. /// 显示xld和region 带有颜色
  10. /// </summary>
  11. class HObjectWithColor
  12. {
  13. private HObject hObject;
  14. private string color;
  15. public HObjectWithColor(HObject _hbj, string _color)
  16. {
  17. hObject = _hbj;
  18. color = _color;
  19. }
  20. public HObject HObject
  21. {
  22. get { return hObject; }
  23. set { hObject = value; }
  24. }
  25. public string Color
  26. {
  27. get { return color; }
  28. set { color = value; }
  29. }
  30. }
  31. }