- public HImage Image//请问这个HImage这样子写有什么作用
- {
- get {
- return this.hv_image;
- }
- set
- {
- if (value != null)
- {
- if (this.hv_image != null)
- {
- this.hv_image.Dispose();
- }
- this.hv_image = value;
- hv_image.GetImageSize(out hv_imageWidth, out hv_imageHeight);
- str_imgSize = String.Format("{0}X{1}", hv_imageWidth, hv_imageHeight);
- //DispImageFit(mCtrl_HWindow);
- try
- {
- barVisible_strip.Enabled = true;
- fit_strip.Enabled = true;
- histogram_strip.Enabled = true;
- saveImg_strip.Enabled = true;
- saveWindow_strip.Enabled = true;
- }
- catch (Exception)
- {
- }
- viewWindow.displayImage(hv_image);
- }
- }
- }
- /// <summary>
- /// 获得halcon窗体控件的句柄
- /// </summary>
- public IntPtr HWindowHalconID
- {
- get { return this.mCtrl_HWindow.HalconID; }
- }
- public HWindowControl getHWindowControl()
- {
- return this.mCtrl_HWindow;
- }
复制代码 |