/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 public static void init()
 {
     if(imageGetter == null)
     {
         imageGetter = new ImageGetter();
         imageGetter.imageReceived += imageTaken;
     }
 }
Пример #2
0
        // Задание начальных значений
        // -------------------------------------------------------------------------------------------------------------------
        public Form1()
        {
            InitializeComponent();

            int w1 = 800, h1 = 600;
            Color c=Color.FromArgb(0, 0, 0);
            Bitmap bmp2 = new Bitmap(w1, h1);
            for (int i = 0; i < w1; i++)    for (int j = 0; j < h1; j++) {   bmp2.SetPixel(i, j, c); }

            for (int i = 0; i < 8; i++) { img[i] = bmp2;        }                            // Image.FromFile("D:\\34.jpg"); }
            for (int i = 0; i < 8; i++) { h[i] = h1; w[i] = w1; }

               // _manager = new FrameworkManager();
            //_manager.CameraAdded += this.HandleCameraAdded;
            pictureBox01.Image = bmp2;

            imageGetter = new ImageGetter();
            imageGetter.imageReceived += imageTaken;
        }