private void btnInserirBiometria_Click(object sender, EventArgs e) { try { openFile.ShowDialog(this); openFile.Filter = "Image Files(*.JPG;*.PNG)|*.JPG;*.PNG"; pbxBiometria.Image = Image.FromFile(openFile.FileName); string strFn = openFile.FileName; Fingerprint fp = new Fingerprint(); fp.AsBitmap = new Bitmap(Bitmap.FromFile(strFn)); pessoaBase.Fingerprints.Add(fp); if (string.IsNullOrEmpty(strFn)) { return; } OrientedSmoother.Equals(fp, fp); SegmentationMask.Equals(fp, fp); } catch (Exception ex) { MessageBox.Show(ex.Message); } }