想在复制图像的时候拉伸或者压缩图像尺寸,可以用StretchBlt()
CreateBitmap(cx, cy, cPlanes, cBitsPixel, bits);
windows为位图分配内存时, 每行像素都具有偶数个字节,即
iBitmapBytes = 2*((cx*cBitsPixel + 15)/16)
或者
iBitmapBytes = ((cx * cBitPixel + 15) & ~15 )>>3;
===============================================