I need to use some BMP images in my PDF. the quality of these BMP images are very good when I open them from disk (in an imageviewer).
But when I try to integrate them in a PDF, the images starts looking like a JPG image (bad quality, unsharp letters and lines).
Are bmp automatically converted to JPG’s in the PDF? Or is there a better way of using BMP images in a PDF?
I’m using the following code:
Aspose.Pdf.Image imageDetailLeft = new Aspose.Pdf.Image();
imageDetailLeft.ImageInfo.ImageFileType = ImageFileType.Bmp;
imageDetailLeft.ImageInfo.File = DestFilePath;
imageDetailLeft.ImageInfo.FixWidth = 200
thanks for helping me out,
Thank you for considering Aspose.
Yes bmp is automatically converted to JPEG. If you don’t want to convert it, please use MemoryBmp. Refer to Image about how to use memory BMP.