/// <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 }