Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int Gdip_CompareImage(unsigned int * Bitmap1, unsigned int * Bitmap2, int w, int h, int Stride, int * x, int * y)
- {
- int offset = Stride/4;
- for (int y1 = 0; y1 < h; ++y1)
- {
- for (int x1 = 0; x1 < w; ++x1)
- {
- if (Bitmap1[x1+(y1*offset)] != Bitmap2[x1+(y1*offset)])
- {
- x[0] = x1; y[0] = y1;
- return 0;
- }
- }
- }
- x[0] = -1; y[0] = -1;
- return -1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement