/// <summary> /// 缩放图像适应控件窗口 /// </summary> /// <param name="hWindow"></param> /// <param name="hv_Height"></param> /// <param name="hv_Width"></param> private void DispImage( HWindowControl hWindow, HTuple hv_Height, HTuple hv_Width)//(控件、图像尺寸) { #region 缩放图像,适应窗口 hWindow.HalconWindow.SetPart(0,0, hv_Width, hv_Height); #endregion }