Esempio n. 1
0
        //CAMARA
        void camara_ThermoCamImgEvent(object sender, ThermoCamImgArgs e)
        {
            //using (Graphics graphics = Graphics.FromImage(e.Imagen))
            //{
            //    using (Font arialFont = new Font("Calibri Light", 7))
            //    {
            //        for (int i = 0; i < e.tempMatrix.GetLength(0); i++)
            //        {
            //            for (int j = 0; j < e.tempMatrix.GetLength(1); j++)
            //            {
            //                graphics.DrawString(e.tempMatrix[i, j].maxTemp.ToString("0.00"), arialFont, Brushes.White, new Point(0, 0));
            //            }
            //        }
            //    }
            //}
            updatePictureBox(this.pictureBox1, ref e.Imagen);

            updateText(labelCam1MaxTemp,            "Max. Temp: "       + e.MaxTemp.ToString()                + " ºC");
            updateText(labelCam1MinTemp,            "Min. Temp: "       + e.MinTemp.ToString()                + " ºC");
        }
Esempio n. 2
0
        void camara_ThermoCamImgReceived(object sender, ThermoCamImgArgs e)
        {
            bmp = e.Imagen;

            updatePictureBox(this.pictureBox1, ref bmp);
        }