Beispiel #1
0
 private void capturarImagem()
 {
     using (WebCamLibrary.TFCapturaVideo fCap = new WebCamLibrary.TFCapturaVideo())
     {
         if (fCap.ShowDialog() == DialogResult.OK)
         {
             pictureBox6.Image    = fCap.Img;
             pictureBox6.SizeMode = PictureBoxSizeMode.StretchImage;
             (bsParamGer.Current as TRegistro_ParamGer).Img = Convercao_imagem.imageToByteArray(fCap.Img);
         }
     }
 }
Beispiel #2
0
        private void bb_capturar_Click(object sender, EventArgs e)
        {
            using (WebCamLibrary.TFCapturaVideo fCap = new WebCamLibrary.TFCapturaVideo())
            {
                if (fCap.ShowDialog() == DialogResult.OK)
                {
                    pImagens.Image = fCap.Img;

                    pImagens.SizeMode = PictureBoxSizeMode.StretchImage;
                    Img = Utils.Convercao_imagem.imageToByteArray(pImagens.Image);
                }
            }
        }
Beispiel #3
0
 private void bb_capturar_Click(object sender, EventArgs e)
 {
     using (WebCamLibrary.TFCapturaVideo fCap = new WebCamLibrary.TFCapturaVideo())
     {
         if (fCap.ShowDialog() == DialogResult.OK)
         {
             pbImagem.Image    = fCap.Img;
             pbImagem.SizeMode = PictureBoxSizeMode.StretchImage;
             (bsFotosPesagem.Current as CamadaDados.Balanca.TRegistro_FotosPesagem).Img = Utils.Convercao_imagem.imageToByteArray(fCap.Img);
             bsFotosPesagem.ResetCurrentItem();
         }
     }
 }