hii...
i'm able to create .bmp image.
But the image is not getting converted into Monochrome.

I have tried wth following code :
Qt Code:
  1. QPixmap bmp(100,50);
  2. QPainter p(&bmp);
  3. p.setRenderHint(QPainter::Antialiasing,blnVar);
  4. p.setPen(Qt::white);
  5. p.drawText(10,20,"AJ");
  6. bmp.save("d:\\Test.bmp","bmp",-1);
  7.  
  8. imgTemp = bmp.toImage();
  9.  
  10. imgTemp.convertToFormat(QImage::Format_Mono,Qt::MonoOnly);
  11. imgTemp.save("d:\\tempMono.bmp","bmp",-1);
To copy to clipboard, switch view to plain text mode 

After executing this code, 2 bmp files are created but both are 32 bit.
How to convert it to monochrome format.
Can somebody help me to solve this ?