DIB means Bitmap device independent. This is the common bitmap format for Windows. In essence, this is the Windows [.bmp] file format. This is very useful as an intermediate format, for example, presenting OpenCV images in native Windows windows.
As an example, my ColorDib.h file over the past few days supports a limited subset of DIB formats, namely the palette, free RGB images. I used this to display OpenCV video in my own windows window. In fact, the full source for this is in the Bitbucket repository to which the link goes.
Microsoft does not offer many API level functions for reading or writing BMP / DIB files. In the old days, all that was there was OleLoadPicturePath and friends, as well as reusing the web browser if you liked doing very inefficient, complex, and weird ways, as well as some awful code provided in the documentation. Then came GDI +, which, although far from ideal, simplified a lot. And this is currently not a problem, except when programming at the API level, where a class such as the one I linked to it is very convenient.
source share