C # Set image adaptive control halcon

    ///  <Summary> 
    /// zoomed image adaptation control window
     ///  </ 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) // (control, image size) 
    {
         #region scale image, the window adapted 

        hWindow.HalconWindow.SetPart ( 0 , 0 , hv_Width, hv_Height); 

        #endregion 
    }

 

Guess you like

Origin www.cnblogs.com/LcVong/p/12614225.html