title: How to save a 32bpp BMP file store in memory to a 24bpp BMP file?
body: <p>I do have a 32bpp BMP image stored in memory and I want to save it to a 24bpp BMP file.</p>
  
  <p>How can I do that in C/C++ or Python? </p>
  
  <p>Usage of Windows API is acceptable, but not other third party libraries.</p>