Beispiel #1
0
 public void UpdatePic(Bitmap[] block, Point[] Points)
 {
     try
     {
         for (int i = 0; i < block.Length; i++)
         {
             using (Graphics g = Graphics.FromImage(bp))
             {
                 g.DrawImageUnscaled(block[i], Points[i].X, Points[i].Y);
             }
         }
         Pic_view.Invoke(new Updatee(() => Pic_view.Image = bp));
     }
     catch
     {
     }
 }
Beispiel #2
0
        public void UpdatePic(Bitmap[] block, Point[] Points)
        {
            try
            {
                label3.Invoke(new Updatee(() => label3.Text = block.Length.ToString()));
                for (int i = 0; i < block.Length; i++)
                {
                    using (Graphics g = Graphics.FromImage(bp))
                    {
                        g.DrawImageUnscaled(block[i], Points[i].X, Points[i].Y);
                    }
                }
                Pic_view.Invoke(new Updatee(() => Pic_view.Image = bp));

                //bp.Save(@"D:\TestIMG\10.jpg");
            }
            catch
            {
            }
        }