Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public SaveWindows(VMCopybookcut vmC)
 {
     InitializeComponent();
     Cvm = vmC;
     this.layoutBoot.DataContext = Cvm.Ocl_CopybookCut;
 }
Exemplo n.º 3
0
        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;

                }
            }
        }