GetDIBits(aBitmap.Canvas.Handle, aBitmap.Handle, 0, bitmapHeight, @buf[0], BitmapInfo, DIB_RGB_COLORS);