Wow, yes apparently GetPixel is incredibly slow. I don't understand the idea behind image locking, but I found this post that explains how to get access to the bitmaps byte array.
That cut the algorithms time down to 11 ms using the Marshal'ing method. To subtract the RGB values from each other just (aR+aG+aB)-(bR+bG+bB)?
phyitbosMember Since 30 Sep 2012
Offline Last Active Oct 15 2012 11:36 PM
- Group Members
- Active Posts 7
- Profile Views 1,418
- Submitted Links 0
- Member Title Member
- Age Age Unknown
- Birthday Birthday Unknown