Click to See Complete Forum and Search --> : Need help with a GDI+ Issue


UnSkiLd
April 29th, 2005, 09:27 PM
hello,

I am trying to better my bitmap scanning code and cant seem to find a solution to do it. Right now I am using unsafe code (C#) to accompolish this and its not working out.

What I want is to be able to compare two bitmaps and it return the differences. Not as a whole bitmap, but by region. Right now I scan 128x96 regions of the bitmap, if its not the same it clones it and saves it then moves to the next 128x96 region. its just slow..

I looked at one dll that was written in VC6 and tried to port it over to C++.Net but couldnt seem to successfully pass the BYTE [] from the dll to my code after I compiled.

Does anyone here have any code that can scan a bitmap region by region for changes, and it be fast? The dll I looked at was using ASM to grab changes. Wish C# would do that.

Any help or information would be appreciated.

UnSkiLd