/// <summary> /// 构造函数(Region和XLD,颜色,填充模式) /// </summary> public HObjectConfig(string name, HObject hObject, Color color, DrawModelType drawModelType) { this.Name = name; this.HObject = hObject; this.Color = color; this.ColorStr = HalconConfig.ColorToStr(color); this.DrawModelType = drawModelType; }
/// <summary> /// 构造函数 /// </summary> public TextConfig(string name, string text, Color color, int x, int y) { this.Name = name; this.Text = text; this.Color = color; this.ColorStr = HalconConfig.ColorToStr(color); this.X = x; this.Y = y; }
/// <summary> /// 构造函数(消息,颜色,位置X,位置Y,绑定方位,同等位要求,是否显示边框) /// </summary> public MessageConfig(string name, string msg, Color color, int x, int y, AnchorType anchorType, CoordSystemType coordType, bool isBox) { this.Name = name; this.Message = msg; this.Color = color; this.ColorStr = HalconConfig.ColorToStr(color); this.X = x; this.Y = y; this.AnchorType = anchorType; this.CoordSystemType = coordType; this.IsBox = isBox; }