In my application I capture the screen and then I need to be able to save the bitmap in a variety of image formats. I am able to successfully save the bitmap as a gif . However, I am facing problems saving the bitmap as a jpeg, png or a tiff.The following code saves a bitmap as a jpeg image. However, the jpeg image gets saved in monochrome i.e. black and white. This is driving me nuts , and I cant seem to figure out why .
Also, in my application in addition to saving images in bmp and jpeg , I also need to support png and tiff. I am unable to get the required formats and codecs for saving a bitmap in a png or tiff format. So , Id appreciate it if you could show me some sample code to save a bitmap as a png and as a tiff.
iJfifFormat.iSettings.iQualityFactor = 90;
iFileSaver->CreateL(targetfilename,&iJfifFormat, NULL, NULL);
Thanks a lot