Can anyone familiar with GDI shed some light on why the next sequence is rushing?
var b = new Bitmap("some file");
var bd= b.LockBits(rect , readonly, px);
var clone = (Bitmap)b.Clone();
var cd = clone.LockBits(rect , readonly , px);
clone.UnlockBits(cd);
b.UnlockBits(bd);
It does not rush if I clone before blocking the first bitmap that I expected.
I would also expect that if it allows you to clone a locked image, and then allows you to lock / unlock a clone, this will not affect the original.
source
share