What should I do in the condition? I want to compare the details of the image to know if it was scanned before.
//Source of Hard Image
var path = Path.Combine(@"C:\Users\mo\Desktop", "myscan" + imageExtension);
//Source of Ram Image
var imageBytes = (byte[])image.FileData.get_BinaryData();
var ms = new MemoryStream(imageBytes);
//Make them to Same type
Image ImgRam = Image.FromStream(ms);
Image ImgHard = Image.FromFile(path);
if(ImgRam==ImgHard)
{
pictureBox2.Image = new Bitmap(ImgRam);
}