} //***************************** end Detect edges *******************************

        private void pictureBox2_MouseClick(object sender, MouseEventArgs e)
        {
            int StandX = (int)((e.X - marginX) / Scale1);
            int StandY = (int)((e.Y - marginY) / Scale1);

            if (MessReturn("MouseClick: Version=" + Version) < 0)
            {
                return;
            }
            switch (Version)
            {
            case 1: CombIm.DrawComb(StandX, StandY, this); break;

            case 2: CombIm.DrawCombPix(StandX, StandY, this); break;

            case 3: ExtremIm.DrawImageLine(StandY, StandX, Threshold, SigmaIm, CombIm.Grid, this); break;
            }
        }