private void Button_Rect_Click_Confirm(object sender, RoutedEventArgs e)
        {
            //方框方式下保存
            if (vmC == null)
                vmC = new VMCopybookcut();
            else
                vmC._ocl_CopybookCut.Clear();

            CutPhote.Entities.Rect R = lvm.Rect[0];
            Save_Image(R.Mg.Left, R.Mg.Top, R.Mg.Left + R.RectWidth, R.Mg.Top + R.RectHeight);
        }
 public SaveWindows(VMCopybookcut vmC)
 {
     InitializeComponent();
     Cvm = vmC;
     this.layoutBoot.DataContext = Cvm.Ocl_CopybookCut;
 }
        public void Save_Image_Line()
        {
            //划线方式下保存
            if(vmC==null)
                vmC = new VMCopybookcut();
            else
                vmC._ocl_CopybookCut.Clear();

            for (int i = 0; i < int.Parse(this.tb_column.Text); i++)
            {
                Lines l_last = lvm._LineSets[i * (int.Parse(this.tb_row.Text) + 1)];
                for (int j = 0; j < int.Parse(this.tb_row.Text); j++)
                {
                    Lines line = lvm._LineSets[i * (int.Parse(this.tb_row.Text) + 1) + j + 1];

                    Save_Image(l_last.X1,l_last.Y1,line.X2,line.Y2);

                    l_last = line;

                }
            }
        }