public Image GetDifferenceImage() { var bmp = new Bitmap(liveImage.Width, liveImage.Height); return(liveImage.GetDifferenceOverlayImage(storedImage) .Resize(storedImage.Width, storedImage.Height)); }
/// <summary> /// Retruns the image which is the result of the difference between 2 given images. /// The resultimg image will have the size of image 2 /// </summary> /// <param name="image1">Image 1</param> /// <param name="image2">Image 2</param> /// <returns>Image resulting from comparisson</returns> public Image GetDifferenceImage(Image image1, Image image2) { var bmp = new Bitmap(image2.Width, image2.Height); return(liveImage.GetDifferenceOverlayImage(image1).Resize(image2.Width, image2.Height)); }