public void HWindowRefresh(Color color, RegionFillMode fillMode)
 {
     HOperatorSet.ClearWindow(m_hvWindowHandle);
     SetRegionColor(color);
     SetRegionFillMode(fillMode);
     ShowImage();
     ShowRegion();
 }
        public void SetRegionFillMode(RegionFillMode fillMode)
        {
            switch (fillMode)
            {
            case RegionFillMode.Fill:
                HOperatorSet.SetDraw(m_hvWindowHandle, "fill");
                break;

            case RegionFillMode.Margin:
                HOperatorSet.SetDraw(m_hvWindowHandle, "margin");
                break;
            }
        }