Implementación de la clase CapturaImagen, donde se toma una captura de pantalla de la imagen del escaneo, la cual se almacena en carpetas separadas por fecha.
This commit is contained in:
@@ -13,6 +13,7 @@ using ScaBox30.Model;
|
||||
using ScaBox30.Controller;
|
||||
using System.Text.Json;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Reflection;
|
||||
|
||||
namespace ScaBox30
|
||||
{
|
||||
@@ -96,6 +97,9 @@ namespace ScaBox30
|
||||
// Zebra printer variables
|
||||
ZebraController ZT231 = new ZebraController("Etiqueta.prn");
|
||||
|
||||
// Screenshot capture variables
|
||||
CapturaImagen capturaImagen = new CapturaImagen();
|
||||
|
||||
|
||||
|
||||
ErrorCode code_actual = ErrorCode.None;
|
||||
@@ -579,6 +583,10 @@ namespace ScaBox30
|
||||
this.BackColor = Color.Red;
|
||||
DialogResult dialogResult = RJMessageBox.Show("Uno o m<>s codigos son incorrectos!", "ScanBox", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
this.BackColor = SystemColors.Control;
|
||||
|
||||
// Capturar zona del PictureBox cuando hay errores para auditor<6F>a
|
||||
capturaImagen.CapturarImg(blackimg_picbx);
|
||||
capturaImagen.GuardarImg(barcode_lbl.Text + "_ERROR", operatorTag);
|
||||
}
|
||||
|
||||
//If 1 or more codes are questionable (utr_count>0) the user has to decide if the results are added to the csv file
|
||||
@@ -609,6 +617,10 @@ namespace ScaBox30
|
||||
labelRate.Text = (time.TotalMilliseconds / 1000).ToString().Substring(0, 5) + " Seg.";
|
||||
TgrBtn.Enabled = true;
|
||||
save_data = true;
|
||||
|
||||
// Capturar zona del PictureBox despu<70>s del segundo escaneo exitoso
|
||||
capturaImagen.CapturarImg(blackimg_picbx);
|
||||
capturaImagen.GuardarImg(barcode_lbl.Text, operatorTag);
|
||||
}
|
||||
|
||||
|
||||
@@ -811,6 +823,7 @@ namespace ScaBox30
|
||||
m_reader?.Dispose();
|
||||
m_searcher?.Dispose();
|
||||
liveviewForm1?.Dispose();
|
||||
capturaImagen?.Dispose();
|
||||
}
|
||||
|
||||
|
||||
@@ -1296,6 +1309,13 @@ namespace ScaBox30
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void bttnQA_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user