DDB should be faster generally, but there may be cases in which a DIB is faster.DDB could be faster because 1) It can be stored in video memory, instead of system memory. 2) Its format normally matches display driver's current pixel format, so there is no extra layer of transformation.But if DIB is smaller in size (for example compressed RLE8/RLE8 bitmaps) and device driver/display is smart enough to transmit compressed image to video card and then decompress.An important rule of performance is measure it.
理由不记得了!
而DIB是标准的设备无关位图,因为我们需要标准接口啊!
1) It can be stored in video memory, instead of system memory.
2) Its format normally matches display driver's current pixel format, so there is no extra layer of transformation.But if DIB is smaller in size (for example compressed RLE8/RLE8 bitmaps) and device driver/display is smart enough to transmit compressed image to video card and then decompress.An important rule of performance is measure it.