image subtraction
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
hello... supposed you have two bitmap images in your form, say bitmap1 and bitmap2... how can you get the difference(image subtraction) of the two images... thank u in advanced....
First, you need to get the dimensions of the bitmaps, then allocate an appropriate array (wid*hei*bpp/8 bytes). Use the GetBitmapBits function to populate the array. Do the same with the second array. Subtract them byte by byte. Use the SetBitmapBits to fill the CBitmap. Live long and in prosper johny74656@gmail.com