title: Convert a 32Bit Png to a 24bit Bitmap
body: <p>What I'm trying to do is process a downloaded image at a pixel level, in a vb6 console application, these are the steps currently</p>
  
  <p>I download a png file from a website, this comes down as a 32 bit image, the image is grey scale, when the image is first 
  downloaded I need to convert it to a 24 bit Bitmap in order to be able to process it, if I open the image in Paint and save 
  it as a 24 bit bitmap I'm able to process the image without issue, when saving in Paint I dod get a message when saving that
  says "Any Transparency will be lost if you save this picture.", Once saved, I then do a binary read on the file then extract the </p>
  
  <blockquote>
    <p>BITMAPFILEHEADER<br>
    BITMAPINFOHEADER<br>
    BMPData  </p>
  </blockquote>
  
  <p>I can then loop through the BMPData and extract and process the needed value's. If I try to load the image without first saving
  it to a 24 bit bitmap in paint, I receive a an out of memory error in VB (Run-Time Error 7) and the BMPInfoHeader.biSizeImage is
  very big compaired to the size it is after with has been saved via paint.</p>
  
  <p>I have tried to convert with ImageMagick-6.9.0-Q16 ad and GraphicsMagick-1.3.21-Q8 but these just seem to mess up the converted file.</p>
  
  <p>Anyone got any idea's ?</p>
  
  <p>Regards</p>
  
  <p>Potman100</p>