private void btnPrint_Click(object sender, EventArgs e) { ImageFormat imageFormat = ImageProc.GetImageFormat(this.pbScannedImage.Image); imageFormat = ImageFormat.Jpeg; Image watermarkedImage = ImageProc.WatermarkImage(this.pbScannedImage.Image); Image jpegImage = ImageProc.ConvertImage(watermarkedImage, imageFormat); byte[] barrImage = ImageProc.ImageToByte(jpegImage); Musteri musteri = new Musteri { Date = this.tbDate.Text, ScannedImage = Convert.ToBase64String(barrImage), ScannedImageFormat = ImageProc.GetMimeType(imageFormat), Address = this.tbAddress.Text, DocumentNo = this.tbDocNo.Text, RecNo = this.tbRecNo.Text, Tel = this.tbTel.Text }; using (frmPrint frmPrint = new frmPrint(musteri)) { frmPrint.ShowDialog(); } }
private void evt_scanComplete(object sender, ScanningCompleteEventArgs e) { pbScannedImage.Image = ImageProc.MergeImagesHorizontal(_lstImages[0], _lstImages[1]); }