- Code: Select all
Bitmap overlayImage;
Bitmap sourceImage;
//ToDo: Load the two images.
// Create filter.
Difference filter = new Difference(overlayImage);
// Apply the filter and return a new bitmap that is the difference between the source and overlay images.
Bitmap resultImage = filter.Apply(sourceImage);
// If you don't want a new image the you can apply the filter directly to the source image.
filter.ApplyInPlace(sourceImage);
now my question is bit different that after getting the difference how can i merge the difference image on my first image at the exact location.
suppose you have two images of your desktop with small difference called img1 and img2. with the help of AForge we can get the difference image with above code. so tell me how can i apply the diff image img3 on my first image img1 with the exact location as a result 3rd image will look like img2 image. is it possible with AForge library.if yes can any one show me the sample code. thanks
