GdipBitmapLockBits works on pBitmaps, requires locking ?
CreatDIBSection gives you a DIBsection, doesn’t require locking ?
which method is better for working with raw pixel data ?
Here are two implementations for finding the difference between two images using each method.
These pieces, by themselves, aren’t enough different to care much about. Mostly it comes down to a question of whether the rest of your code is using GDI or GDI+. If you’re using GDI+, you might as well use
gdipBitmapLockBits. If the rest of your drawing code just uses GDI, then you might as well useCreateDIBSection.