public void DrawRectangle(Rectangle rect) { ROI = rect; DrawImage = (Bitmap)DisplayImage.Clone(); var graph = Graphics.FromImage(DrawImage); graph.DrawRectangle(new Pen(Brushes.Red, 5), ROI); if (ImageDrawed != null) { ImageDrawed(this, EventArgs.Empty); } }
public void SecondNameOCR(Rectangle secondName) { SNameROI = secondName; DrawImage = (Bitmap)DisplayImage.Clone(); var graph = Graphics.FromImage(DrawImage); }
public void FirstNameOCR(Rectangle firstName) { FNameROI = firstName; DrawImage = (Bitmap)DisplayImage.Clone(); var graph = Graphics.FromImage(DrawImage); }